Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
50 views
Problem with installation rust on AIX 72 using dnf
On AIX 7.2 had installed dnf system through https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh I need install rust but, when i try do it i got: ``` bash-5.2# dnf install rust Last metadata expiration check: 1 day, 4:00:30 ago on Tue Jul 22 04:31:45 EDT 2025. Error...
On AIX 7.2 had installed dnf system through https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh I need install rust but, when i try do it i got:
bash-5.2# dnf install rust
Last metadata expiration check: 1 day, 4:00:30 ago on Tue Jul 22 04:31:45 EDT 2025.
Error: 
 Problem: package rust-1.86.0-250527.ppc requires rust1.86 >= 1.86.0, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides libunwind.a(libunwind.so.1) needed by rust1.86-1.86.0-250516.ppc
  - nothing provides libc++.a(libc++.so.1) needed by rust1.86-1.86.0-250516.ppc
  - nothing provides libc++abi.a(libc++abi.so.1) needed by rust1.86-1.86.0-250516.ppc
  - nothing provides libunwind.a(libunwind.so.1) needed by rust1.86-1.86.0-250527.ppc
  - nothing provides libc++.a(libc++.so.1) needed by rust1.86-1.86.0-250527.ppc
  - nothing provides libc++abi.a(libc++abi.so.1) needed by rust1.86-1.86.0-250527.ppc
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Thanks in advance for any help
Costy (11 rep)
Jul 23, 2025, 12:33 PM • Last activity: Jul 30, 2025, 10:54 AM
3 votes
3 answers
7003 views
What is paging space in AIX?
I get that Paging Space in AIX is actually like SWAP in Linux. In one of my AIX servers at work, i'm actually seeing 99.7% Physical memory being utilized when my application is running(handling quite some data). Most of the time Server is utilizing 95% of Physical memory(RAM). From the pic attached,...
I get that Paging Space in AIX is actually like SWAP in Linux. In one of my AIX servers at work, i'm actually seeing 99.7% Physical memory being utilized when my application is running(handling quite some data). Most of the time Server is utilizing 95% of Physical memory(RAM). From the pic attached, we can see Paging Space is being utilized. And i believe my Application can run little faster if i upgrade RAM. But i am not able to convince the management. They say that still Paging Space is there and until it's utilized fully, no need to upgrade RAM. enter image description here Isn't paging Space actually in Hard Disk ? OS actually transfer data between Paging Space(Hard Disk) & RAM back & forth in case of High Memory Utilization ? Can someone please shed light that if i am using up 99.7% of Physical Memory - RAM in Server,it's a Good reason to upgrade RAM ? Note: I'm posting here as a last resort and in need of proof to convince my management to upgrade the RAM in my server before Christmas, as i will be seeing quite a lot of data during Christmas. So Please, before down-voting, at least help me what's wrong with my question and help me get an answer.
Bruce (31 rep)
Dec 5, 2017, 06:59 PM • Last activity: Jul 11, 2025, 02:05 AM
4 votes
1 answers
3078 views
General problem solving steps when print jobs hang in AIX?
What should I do if jobs are getting stuck in the print queue even after restarting spooling? $ stopsrc -g spooler $ startsrc -g spooler $ lpstat -oQUEUENAME | wc -l; sleep 30; lpstat -oQUEUENAME | wc -l 139 139 $ oslevel 6.1.0.0
What should I do if jobs are getting stuck in the print queue even after restarting spooling? $ stopsrc -g spooler $ startsrc -g spooler $ lpstat -oQUEUENAME | wc -l; sleep 30; lpstat -oQUEUENAME | wc -l 139 139 $ oslevel 6.1.0.0
LanceBaynes (41465 rep)
Jun 20, 2011, 06:03 PM • Last activity: Jul 9, 2025, 04:03 AM
0 votes
2 answers
3049 views
How to get server uptime of AIX server results in seconds
In Linux, I can get the server uptime results in seconds (value) by using below command ``` cat /proc/uptime ``` But in AIX, we do not have `uptime` in `/proc`. If I just type `uptime`, I get results in days, hours, minutes, but I want to get the output only in seconds like 86400 seconds or 30 secon...
In Linux, I can get the server uptime results in seconds (value) by using below command
cat /proc/uptime
But in AIX, we do not have uptime in /proc. If I just type uptime, I get results in days, hours, minutes, but I want to get the output only in seconds like 86400 seconds or 30 seconds or any value. With this output, I want to set an alert from SCOM monitoring tool to create alerts if it is less than 1800 seconds. From SCOM, I can run a shell command.
Diana (1 rep)
Apr 1, 2020, 07:44 PM • Last activity: Jul 7, 2025, 04:04 PM
0 votes
1 answers
8744 views
How to set mail subject using variable and ensure attachment is not included in email body
I have the following shell script fragment. var_name='ZZPCI' for emailadd in `cat /tmp/email_list.tmp` do subject_text="Subject with Var Name "$var_name subj_text_novar="Subject without Var Name" email_mssge="this is the message with variable name "$var_name echo "$email_mssge"|mailx -a /tmp/my_repo...
I have the following shell script fragment. var_name='ZZPCI' for emailadd in cat /tmp/email_list.tmp do subject_text="Subject with Var Name "$var_name subj_text_novar="Subject without Var Name" email_mssge="this is the message with variable name "$var_name echo "$email_mssge"|mailx -a /tmp/my_report.txt -s "$subject_text" "$emailadd" echo "$email_mssge"|mailx -a /tmp/my_report.txt -s "$subj_text_novar" "$emailadd" done What it does is a. Sets the variable var_name b. Reads through the list of email addresses stored in /tmp/email_list.tmp c. Compiles and sends an email with /tmp/my_report.txt (plain text file) as an attachment The script is intended to run on a number of different servers, so var_name will change with each server. The mail command with $subj_text_novar, (does not include $var_name in the subject string), sends the email correctly . However the mail command with $subject_text which does include $var_name places the contents of the attachment into the main body of the email. As far as I can make out, it is the actual $-sign causing the problem because hardcoding the var_name value into the string is fine but I don't see why because surely var_name is just a concatenated string So, how can I set the subject for mail so it includes $var_name and my text file is sent as an attachment? I am running this on SuSE 11.3 but the solution ideally needs to work on AIX 6.1 and HP UX11.31 as well Regards
Noj (1 rep)
Jul 21, 2015, 03:28 PM • Last activity: Jun 14, 2025, 07:05 PM
8 votes
4 answers
12756 views
Equivalent maxdepth for find in AIX
I'm trying to get all files by mask in some directory without recursively searching in subdirs. There is no option `-maxdepth 0` in AIX for that. I've heard about `-prune`, but still can't get how it works. I guess the command should look something like find dir \( ! -name dir -prune -type f \) -a -...
I'm trying to get all files by mask in some directory without recursively searching in subdirs. There is no option -maxdepth 0 in AIX for that. I've heard about -prune, but still can't get how it works. I guess the command should look something like find dir \( ! -name dir -prune -type f \) -a -name filemask but it doesn't work. Could you please write a correct command for me and explain how it will work? **UPD** It seems command find dir ! -path dir -prune prints all files and catalogs in dir, but not files and catalogs in dir/*, so I can use it for my case.
Vikora (125 rep)
Jun 23, 2017, 03:04 PM • Last activity: Jun 5, 2025, 02:59 PM
0 votes
2 answers
3785 views
How to Remove caavg_private Properly on AIX?
I am trying to cleanup a server which had a PowerHA configuration. I have stopped cluster (`smitty clstop`) and removed resource groups. How do I remove the caavg_private properly? hdisk5 00cc90476e2a44dd caavg_private active # lsvg -l caavg_private caavg_private: LV NAME TYPE LPs PPs PVs LV STATE M...
I am trying to cleanup a server which had a PowerHA configuration. I have stopped cluster (smitty clstop) and removed resource groups. How do I remove the caavg_private properly? hdisk5 00cc90476e2a44dd caavg_private active # lsvg -l caavg_private caavg_private: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT caalv_private1 boot 1 1 1 closed/syncd N/A caalv_private2 boot 1 1 1 closed/syncd N/A caalv_private3 boot 4 4 1 open/syncd N/A powerha_crlv boot 1 1 1 closed/syncd N/A # clstat -o clstat - HACMP Cluster Status Monitor ------------------------------------- Cluster: (1591186363) Wed Apr 1 03:57:10 2020 State: UP Nodes: 2 SubState: STABLE Node: Node01 State: UP Interface: Node01 (0) Address: 10.x.x.x State: UP Node: Node02 State: UP Interface: Node02 (0) Address: 10.x.x.x State: UP
RJ Gellangarin (11 rep)
Apr 1, 2020, 07:56 AM • Last activity: May 20, 2025, 03:00 AM
3 votes
5 answers
7883 views
I want to try out AIX in my pc, can i emulate it or get it to run for a very affordable price?
can AIX be emulated with QEMU or can i buy an old IBM processor to use it? or some other easy way?
can AIX be emulated with QEMU or can i buy an old IBM processor to use it? or some other easy way?
Dubstep69 (31 rep)
Aug 13, 2015, 09:07 PM • Last activity: Apr 3, 2025, 06:10 PM
1 votes
0 answers
51 views
AIX 7.2 on QEMU, virtio devices
I've successfully install an AIX 7.2 vm on QEMU for some time. I've recently started to experiment to make it a bit faster. Switching from qcow2 to raw plus io_uring made a good difference. I'm also trying to switch from spapr-vscsi & spapr-vlan devices to virtio. Virtio-scsi works fine, but I have...
I've successfully install an AIX 7.2 vm on QEMU for some time. I've recently started to experiment to make it a bit faster. Switching from qcow2 to raw plus io_uring made a good difference. I'm also trying to switch from spapr-vscsi & spapr-vlan devices to virtio. Virtio-scsi works fine, but I have issues with virtio-net. While booting, I can see the virtio-net device on firmware:
Populating /pci@800000020000000
                     00 0000 (D) : 1234 1111    qemu vga
                     00 0800 (D) : 1033 0194    serial bus [ usb-xhci ]
                     00 1000 (D) : 1af4 1004    virtio [ scsi ]
Populating /pci@800000020000000/scsi@2
       SCSI: Looking for devices
          100000000000000 DISK     : "QEMU     QEMU HARDDISK    2.5+"
                     00 1800 (D) : 1af4 1000    virtio [ net ]
On AIX:
$ lsdev -Cc adapter
ent0    Defined         Virtual I/O Ethernet Adapter (l-lan)
ent1    Defined         Virtual I/O Ethernet Adapter (l-lan)
ent2    Available 00-18 Virtio NIC Client Adapter (f41a0100)
hdcrypt Available       Data encryption
pkcs11  Available       ACF/PKCS#11 Device
scsi0   Available 00-10 Virtio SCSI Client Adapter (f41a0800)
vsa0    Available       LPAR Virtual Serial Adapter
vscsi0  Defined         Virtual SCSI Client Adapter
(I have only one NIC on the vm, but have the same result with spapr-vlan enabled, where networking works fine)
$ prtconf
* ent2    qemu_virtio-net-pci:0000:00:03.0     Virtio NIC Client Adapter f41a0100)
But unfortunately ifconfig -a shows only loopback, lo0. Any ideas how to enable NIC (en2 I suppose) to be listed in ifconfig and being able to configure?
Krackout (2887 rep)
Mar 24, 2025, 01:20 PM
0 votes
3 answers
2500 views
Time in seconds since boot on AIX
I need to get the number of seconds since the last reboot, using ksh. What is the command or function to achieve this?
I need to get the number of seconds since the last reboot, using ksh. What is the command or function to achieve this?
Venkat Teki (347 rep)
Mar 17, 2016, 10:22 AM • Last activity: Feb 5, 2025, 01:19 PM
1 votes
1 answers
121 views
AIX: BFF file can be extracted but not used for installation
I work in an ancient AIX 4.3.3 environment, please don't ask. There is a BFF file from a legitimate AIX CDROM from which I must install a package. I can interact just fine with the file with `restore`. Enumeration and extraction work as expected. Unfortunately the same cannot said about `inutoc` or...
I work in an ancient AIX 4.3.3 environment, please don't ask. There is a BFF file from a legitimate AIX CDROM from which I must install a package. I can interact just fine with the file with restore. Enumeration and extraction work as expected. Unfortunately the same cannot said about inutoc or installp. The former doesn't generate an error message but doesn't give me a .toc file either. The latter errors out with:
# installp -l -d .
0503-003 installp:  The specified device /home/root/install/.
        is not a valid device or file.
#
This might be due to the lack of .toc file though. I've poked at the processes with syscalls and trace, to no avail. AIX 4 doesn't have truss yet. I have no reason to believe the file is corrupted. Any advice will be appreciated.
Michael B. Ortiz (11 rep)
Nov 26, 2024, 05:24 PM • Last activity: Jan 21, 2025, 01:43 PM
0 votes
0 answers
34 views
Java 11 DocPrintJob throw IOException for -o flags with AIX print spooler
I am using the Java Print Service API (javax.print) to send print jobs to a specific printer queue on an AIX system. While my code works fine with Java 8, switching to Java 11 causes it to fail with an IOException related to the -o flags passed to the AIX print spooler. **Environment Details** 1. Op...
I am using the Java Print Service API (javax.print) to send print jobs to a specific printer queue on an AIX system. While my code works fine with Java 8, switching to Java 11 causes it to fail with an IOException related to the -o flags passed to the AIX print spooler. **Environment Details** 1. Operating System: AIX with the native AIX print spooler (not CUPS). 2. Java Versions: Java 8 (works fine). Java 11 (throws IOException). Upon further inspection, I found that the -o job-sheets=standard flag is being passed to the lpr command by default. The AIX print spooler does not support this flag, which causes the job to fail. > IOException: error=254 running: '/usr/bin/lpr' '-PTESTPRN2' '-J Java > Printing' '-o job-sheets=standard' > '/tmp/javaprint13160595099572358650' usage: lpr [-fghjlmnprs] > [-PPrinter] [-#NumberCopies] [-CClass] > [-JJob] [-TTitle] I create printing spooler using smit spooler -> add queue -> remote I didnt find any option to set banner which is ultimately done jobsheet=standard attribute. For more details: we have printer connected to printserver(dlink small printserver)via usb AIX request to the printserver. Furthermore lpr -p /etc/hosts work from commandline(without -o flag) what can be the reason and solution about this problem?
Subesh poudel (11 rep)
Jan 8, 2025, 12:39 PM • Last activity: Jan 10, 2025, 06:50 PM
1 votes
0 answers
68 views
Transferring tar data between servers started taking much longer
I have a nightly backup that transfers about 100gb of data from AIX server A to AIX server B using the following command in a script. tar cf - ./DATA | ssh server_b 'cd /DISKCOPY ; tar xf - ' This has been running for months consistently taking about 30 minutes but, as of a few days ago, has been ta...
I have a nightly backup that transfers about 100gb of data from AIX server A to AIX server B using the following command in a script. tar cf - ./DATA | ssh server_b 'cd /DISKCOPY ; tar xf - ' This has been running for months consistently taking about 30 minutes but, as of a few days ago, has been taking progressively much longer every day without much change in the size of data. 2 hours, then 6 hours, now it's almost up to 24 hours. The tar process is visible using "ps -ef | grep tar" on both servers and the data can be seen slowly overwriting the contents of /DISKCOPY but I can't tell whether it's the tar cf or the tar xf or the transfer over the network that is deteriorating. There doesn't seem to be a problem with the network speed and it looks like there is plenty of room for the data in /DISKCOPY on server_b. Is there something that could make tar (either cf or xf) start to take a long time? A temporary location that is running out of space or something? Or could it be a problem with the disk? Update: Turns out it's probably our site-to-site network link. Sorry it wasn't something more exotic.
RedCabbage (11 rep)
Dec 26, 2024, 10:21 AM • Last activity: Jan 3, 2025, 08:54 AM
3 votes
3 answers
384 views
print text between special characters on same line and remove starting and ending whitespaces
I am trying to achieve getting text between special characters. You can follow the below to understand what I am trying to achieve. I have the necessary commands to do this, however I am looking for a more efficient way incase certain conditions may change based on the outcome. Below has the text On...
I am trying to achieve getting text between special characters. You can follow the below to understand what I am trying to achieve. I have the necessary commands to do this, however I am looking for a more efficient way incase certain conditions may change based on the outcome. Below has the text On-Line (Prim) for example. I want to extract any text between "--" 1st and 2nd occurance. So I have the text below in "VAL1" variable IBM Informix Dynamic Server Version 14.10.FC10XA -- On-Line (Prim) -- Up 77 days 23:08:31 -- 130337920 Kbytes So currently I am using the below: echo "$VAL1" | awk -F'--' '$1 ~ /Version/ {print $2}' The above gives the below output: On-Line (Prim) However, you can't see that there is necessary a whitespace at the end of the line, but the start is very noticable. I want to ensure that I only print the words between "--" that excludes any whitespaces before and after the sentence inside "--". So I attempted using the below, which to me seems to be fine: echo "$VAL1" | awk -F'--' '$1 ~ /Version/ {print $2}' | sed 's/^ //g' | sed 's/ *$//' Outout: On-Line (Prim) I want to know if there is a better and easier way to do this that is more sufficient?
Christopher Karsten (505 rep)
Dec 15, 2024, 03:39 PM • Last activity: Dec 20, 2024, 10:41 AM
1 votes
1 answers
75 views
Temenos Printing Error on AIX: Unsupported lpr Flags (-J and -o) with Semeru Runtime
I'm running a Temenos application on an AIX 7.3 system configured with the AIX spooler. The lpr command works fine when tested manually. However, when the application attempts to print using Java's java.io.PrintService API, I encounter the following error: java.io.IOException: error=254 running...
I'm running a Temenos application on an AIX 7.3 system configured with the AIX spooler. The lpr command works fine when tested manually. However, when the application attempts to print using Java's java.io.PrintService API, I encounter the following error: java.io.IOException: error=254 running: '/usr/bin/lpr' '-PTESTPRN2' '-J Java Printing' '-o job-sheets=standard' '/tmp/javaprint13160595099572358650' usage: lpr [-fghjlmnprs] [-PPrinter] [-#NumberCopies] [-CClass] [-JJob] [-TTitle] [-iNumberColumns] [-wWidth] [Filename ...] It seems the Java code, triggered by Temenos, generates an lpr command with flags (-J and -o) that are not supported by the AIX lpr implementation. The spooler itself is set up correctly and prints without issues when commands are executed manually: lpr -PTESTPRN2 /etc/hosts **What I've tried:** 1. Considered downgrading to Java 8, as it might generate compatible lpr commands and lpr with -j and -o works fine, but Java 11 is currently installed. ***Note:application can't run on java8*** 2. The lpr command works fine when executed manually without unsupported flags (e.g., lpr -PTESTPRN2 /path/to/file). 3. Thought about creating a wrapper script to translate unsupported flags into AIX-compatible ones, but I'm unsure how to integrate it with Temenos. 4. Write sample Java code that uses JPS to print and got same error with java11 but works on java8. 5. Run the sample Java code with wrapper script.  It works, but still Temenos gave the same error. **Sample Java Code for Testing**
import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
import java.io.*;

public class PrintHostsFileWithQueue {
    public static void main(String[] args) {
        String printerName = "TESTPRN2"; // Replace with your print queue name

        try {
            // Specify the file to print
            File file = new File("/etc/hosts");
            if (!file.exists()) {
                System.out.println("The file /etc/hosts does not exist.");
                return;
            }

            // Create a FileInputStream for the file
            FileInputStream fis = new FileInputStream(file);

            // Define the document flavor (plain text)
            DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8;
            PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
            attributes.add(new Copies(1)); // Number of copies
            attributes.add(new JobSheets(JobSheets.NONE, JobSheets.NONE));

            // Get all available print services
            PrintService[] printServices = PrintServiceLookup.lookupPrintServices(flavor, null);

            // Find the specified print queue
            PrintService selectedService = null;
            for (PrintService service : printServices) {
                if (service.getName().equalsIgnoreCase(printerName)) {
                    selectedService = service;
                    break;
                }
            }

            if (selectedService == null) {
                System.out.println("Printer with name '" + printerName + "' not found.");
                fis.close();
                return;
            }

            // Create a print job
            DocPrintJob printJob = selectedService.createPrintJob();

            // Create a Doc object wrapping the input stream
            Doc doc = new SimpleDoc(fis, flavor, null);

            // Print the document
            printJob.print(doc, null);

            System.out.println("Printing /etc/hosts to printer: " + printerName);
            fis.close();
        } catch (FileNotFoundException e) {
            System.out.println("File not found: " + e.getMessage());
        } catch (PrintException e) {
            System.out.println("Error during printing: " + e.getMessage());
        } catch (IOException e) {
            System.out.println("Error closing the file: " + e.getMessage());
        }
    }
}
**Wrapper Script**
#!/bin/bash

# Step 1: Backup the existing lpr binary
if [ -f /usr/bin/lpr ]; then
    echo "Backing up the existing /usr/bin/lpr..."
     mv /usr/bin/lpr /usr/bin/lpr.original
else
    echo "/usr/bin/lpr does not exist. Exiting."
    exit 1
fi

# Step 2: Create the new lpr wrapper script
echo "Creating the new /usr/bin/lpr wrapper script..."

cat  /dev/null
#!/bin/bash
# Remove unsupported options and pass others to the original lpr
ARGS=()
for arg in "$@"; do
    case "$arg" in
        -o*|*-J*) ;; # Ignore unsupported options
        *) ARGS+=("$arg") ;;
    esac
done
/usr/bin/lpr.original "${ARGS[@]}"
EOF

# Step 3: Make the new script executable
echo "Making /usr/bin/lpr executable..."
chmod +x /usr/bin/lpr

# Step 4: Confirm the change
echo "lpr wrapper script has been created and is now executable."
echo "Test the print command to confirm it's working."
Subesh poudel (11 rep)
Dec 19, 2024, 04:04 PM • Last activity: Dec 19, 2024, 07:52 PM
3 votes
4 answers
686 views
Convert pipe delimited column data to HTML table format for email
I am trying to convert delimited data format to html column table output for email printing and I am unsure how to use pipe delimiter as a separater for HTML tabular formatting. Below is what I could use if a space was a separator, but in this example I am using a pipeline (|). awk ' BEGIN { print "...
I am trying to convert delimited data format to html column table output for email printing and I am unsure how to use pipe delimiter as a separater for HTML tabular formatting. Below is what I could use if a space was a separator, but in this example I am using a pipeline (|). awk ' BEGIN { print "To: 'testemail@gmai.com'" #print "MIME-Version: 1.0" print "Content-Type: text/html" print "Subject: This is a test email" print "" print "" print "SID"; print "PID"; print "Username"; print "Database"; print "Hostname"; print "Program"; print "Connected"; print "Idle Time"; print "Query Time"; print "EST COST"; print "SEQ SCAN"; print "Query"; print "" } { print "" print ""$1""; print ""$2""; print ""$3""; print ""$4""; print ""$5""; print ""$6""; print ""$7""; print ""$8""; print ""$9""; print ""$10""; print ""$11""; print ""$12""; print "" } END { print "" } ' /home/test/test.unl | sendmail -t Inside the test.unl file is the below: 15422216|-1|dwhvo|test|pd244zax.test.corp|N/A| 10:56:53| -0:00:30|10:57:22|1045127|1|SELECT sba_sub_aux.sba_subscriber_id, sba_sub_aux.sba_id_number, sba_sub_aux.sba_matchcode, sba_sub_aux.sba_marketing, sba_su| I would like to achieve the below in table format via email. enter image description here
Christopher Karsten (505 rep)
Dec 12, 2024, 10:47 AM • Last activity: Dec 19, 2024, 01:18 PM
1 votes
0 answers
43 views
Mediawiki on AIX, PHP-component missing
My OS-Version is AIX 7.2.5.3 (`oslevel -s` shows "7200-05-03-2148") and i try to install a Mediawiki (1.39.1). I used the RPM-packages from the "[AIX Toolbox for Open Source Software][1]" and have installed the versions from there: PHP 7.4.33 MariaDB 10.4.26 Apache 2.4.54 Now, Mediawiki complains on...
My OS-Version is AIX 7.2.5.3 (oslevel -s shows "7200-05-03-2148") and i try to install a Mediawiki (1.39.1). I used the RPM-packages from the "AIX Toolbox for Open Source Software " and have installed the versions from there: PHP 7.4.33 MariaDB 10.4.26 Apache 2.4.54 Now, Mediawiki complains on its configuration screen about missing PHP components, namely "intl", the internationalization functions. Alas, the only way to get this extension seems to be to compile PHP from source - a process i'd like to avoid because on AIX this is a PITA. So, my question is: is there a known way to install Mediawiki on AIX without having to compile software? I have searched the net and came up blank, save for "Install Mediawiki on AIX ", an article i wrote myself 10 years ago. Although working, these are versions too old to use any more.
bakunin (683 rep)
Jan 6, 2023, 07:34 AM • Last activity: Dec 15, 2024, 05:16 PM
4 votes
5 answers
8420 views
Use alias after issuing sudo su command
I am on AIX 7.1. I have a bunch of aliases defined in my personal .profile. alias df='df -k' alias cl=clear alias h=history alias ll='ls -al' alias lt='ls -latr' alias ls='ls -Fa' alias psj='ps -ef | grep java' If I issue a 'sudo su' or 'sudo su other_user' command, I am not able to use these aliase...
I am on AIX 7.1. I have a bunch of aliases defined in my personal .profile. alias df='df -k' alias cl=clear alias h=history alias ll='ls -al' alias lt='ls -latr' alias ls='ls -Fa' alias psj='ps -ef | grep java' If I issue a 'sudo su' or 'sudo su other_user' command, I am not able to use these aliases. I was under the impression that using a 'sudo su' without a '-' (sudo su -) would make me root while using my personal .profile? jg10371@asdepdm1: /home/jg10371 $ ll total 88 drwx------ 3 jg10371 unxusers 4096 May 29 09:21 ./ drwxr-xr-x 154 bin bin 12288 May 29 09:35 ../ -rw------- 1 root system 200 Jul 04 2010 .bash_history -rw-r--r-- 1 jg10371 unxusers 1943 May 29 09:35 .profile -rw------- 1 jg10371 unxusers 6944 May 29 09:36 .sh_history drwx------ 2 jg10371 unxusers 256 May 28 11:06 .ssh/ -rw------- 1 jg10371 unxusers 44 May 28 12:21 .vas_disauthcc_9168 -rwx------ 1 jg10371 unxusers 28 May 28 12:21 .vas_logon_server* -rwx------ 1 jg10371 unxusers 18 Mar 28 18:06 .vi_history* jg10371@asdepdm1: /home/jg10371 $ sudo su Password: jg10371@asdepdm1: /home/jg10371 $ ll ksh: ll: not found. jg10371@asdepdm1: /home/jg10371
hacket (143 rep)
May 29, 2015, 02:38 PM • Last activity: Nov 22, 2024, 08:33 PM
0 votes
3 answers
216 views
Find command slow when I'm not piping into awk
I have a script I've used for many years for building a list to some directories, with the following lines: ##Find all scenarios for this sector number find /gsgt/source/scenarios/AT_* -name ${current}"*" -type d | \ awk -F"/" '{print $NF}' > Sector_${current}_list.txt find /gsgt/source/scenarios/AT...
I have a script I've used for many years for building a list to some directories, with the following lines: ##Find all scenarios for this sector number find /gsgt/source/scenarios/AT_* -name ${current}"*" -type d | \ awk -F"/" '{print $NF}' > Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "3T${current}*" -type d | \ awk -F"/" '{print $NF}' >> Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "4T${current}*" -type d | \ awk -F"/" '{print $NF}' >> Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "Sector_${current}*" -type d | \ awk -F"/" '{print $NF}' >> Sector_${current}_list.txt` This gives me a list of only the directory names. The commands take a split second to complete. Recently, we've found a need to start with full path statements in a similar script. I rewrote the section without the pipe into awk as follows: ##Find all scenarios for this sector number, put them into list find /gsgt/source/scenarios/AT_* -name ${current}"*" -type d \ > Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "3T${current}*" -type d \ >> Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "4T${current}*" -type d \ >> Sector_${current}_list.txt find /gsgt/source/scenarios/AT_* -name "Sector_${current}*" -type d \ >> Sector_${current}_list.txt This gives me the same list with full path statements, and works, but it takes *nearly a minute* to complete. It's searching the same tree structure, with the same variable input. Why is the second one, which seems "simpler", so much slower?
atc_ceedee (113 rep)
Jul 20, 2024, 06:15 PM • Last activity: Nov 14, 2024, 07:09 PM
2 votes
2 answers
221 views
Why is the ntptrace peers list inconsistent with the ntpq peers list?
Environment: NTP Clients (AIX 6.1 TL07) + P/S NTP Servers (ST1 GPS). Symptom: 1. the `ntpq -pn` command outputs both the primary and secondary (candidate) NTP server. 2. the `ntptrace` command just outputs both the loopback and primary NTP server. Questions: 1. Why would the loopback appear in the `...
Environment: NTP Clients (AIX 6.1 TL07) + P/S NTP Servers (ST1 GPS). Symptom: 1. the ntpq -pn command outputs both the primary and secondary (candidate) NTP server. 2. the ntptrace command just outputs both the loopback and primary NTP server. Questions: 1. Why would the loopback appear in the ntptrace peers list even without this entry in the ntpq (ntp.conf)? 2. Why would the secondary (candidate) NTP server entry not appear in the ntptrace peers list?
# grep -Ev "^(#|$)" /etc/ntp.conf
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 10.16.27.24
server 10.18.12.15
# ntpq -pn
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*10.16.27.24   .GPS.            1 -   42  128  377     0.98   -0.078    0.11
+10.18.12.15   .GPS.            1 -   20   16  377     1.89   -0.056    0.41
# ntptrace
loopback: stratum 2, offset -0.000290, synch distance 0.00131
10.16.27.24: stratum 1, offset -0.000308, synch distance 0.00000, refid 'GPS'
lylklb (285 rep)
Aug 5, 2024, 08:33 AM • Last activity: Aug 13, 2024, 12:55 PM
Showing page 1 of 20 total questions