AIX (Advanced Interactive eXecutive, pronounced "a i ex") is a series of proprietary Unix operating systems developed and sold by IBM for several of its computer platforms.

learn more… | top users | synonyms

2
votes
2answers
331 views

linux equivalent to AIX proctree command to show all child and parent processes of a given PID

Sometimes I'm looking for an equivalent for the AIX proctree command which displays all children and all ancestors of a specified PID and can be sometimes quite useful for troubleshooting purposes. As ...
2
votes
1answer
53 views

Shell Script - Redirected output to a file and results are not as expected in first run

I have redirected the output of the command which returns some times 2 rows, 5 rows.. 100 rows etc in the file.. and i will use this file in if condition later to check some other conditions.. ...
0
votes
3answers
92 views

Avoid pgrep in sh

#!/bin/sh ALTER="$1" NAME="$2" for pr in $(pgrep $NAME); do elapse=$(ps -o etime= -p $pr) [ "${elapse%-*}" -gt "$ALTER" ] && echo $pr done I am running this on AIX which doesn't ...
2
votes
1answer
133 views

How to get list of files with not having search string [duplicate]

I have a requirement to display all files in a directory which doesn't have CountOfFilesTransmitted=0 string in them. If I give below command it gives only those files which has ...
0
votes
0answers
226 views

AIX ssh issue can't able to login

I cant able to do ssh as normal users except root . I tired with password as well . its logged in successfully and throw me out . Here is the error message i got. ...
0
votes
0answers
44 views

Mail from another server

On my development UNIX server mail server is not installed. I want to mail a file everyday which I create on development server. Now I am doing it manually by copying file to another UNIX server ...
0
votes
0answers
31 views

Encrypt traffic between enduser and application on AIX server

I have end users with Windows 7 workstations and they are using some special application (based on WS client - Oracle Tuxedo product) to connect Tuxedo server WSL service which listen on port 1419. I ...
1
vote
1answer
77 views

Replace or modify file contents at one shot

I have file where I need to modify some lines for every account. The line which I need to modify looks like as below: PstlInfo <some content> NNYYYN (Every account will have this line) the ...
2
votes
1answer
41 views

How to have a process queue in AIX like xargs with “--max-procs”?

Consider a simple processing queue like: cat list.txt | xargs -n1 -P20 process.sh (-P or --max-procs) How to have something like that in AIX ?
1
vote
2answers
134 views

Comparing directories using diff

I'm trying to compare two directories that contain binary files, on AIX 6. I'm using diff in preference to dircmp, as I'm trying to maintain a consistent output format between this and my Linux ...
0
votes
1answer
75 views

Compare size of file system

How to compare size of file system on 2 different servers Eg: Server1 Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/prddatalv 40.00 18.32 55% 65 1% ...
2
votes
1answer
60 views

How to find out what floods the terminal?

When logged in via SSH to an AIX 6.1: 0:root@SERVER:/root # Message from root on SERVER (UNKNOWN) [Fri Sep 18 08:00:17 2015] ... Message from qdaemon: : (WARNING) Connection to server failed. ...
4
votes
3answers
59 views

Open a file with line numbers in more (AIX)

How do I open a file in more mode with line numbers. I am using ksh on AIX for less I use -N but for more it is not working. less -N filename
0
votes
2answers
107 views

motd - UNIX - AIX - different welcome screens for diff users

is it possible to segregate different motd files for different users ? So Admin gets a different message and others diff one....
0
votes
2answers
543 views

Database: 0403-009 The specified number is not valid for this command

getting the error as Database: 0403-009 The specified number is not valid for this command. Code:: #!/usr/bin/ksh #set -x WORKFILE="/tmp/oatest.out" DDLFILE="/tmp/oatest.ddl" ...
0
votes
0answers
533 views

Cpu and memory utilization is high in Aix

Hello everyone, I have problem with my CPU utilization I am using sar command to know my cpu idle % in that idle percentage is null and %sys %usr utilizing more, I am trying to check with ...
0
votes
1answer
91 views

Need to capture part of file name into variable

I have bunch of CSV files named like so in a directory: s_m_u_supplemental_fields_account_9_4_2015_11_26_Error.csv s_m_u_supplemental_fields_account_9_4_2015_12_3_Error.csv ...
4
votes
5answers
913 views

delete folders older than 1 day

I want to delete all the folders that are older than 1 day with following command: find /test -mmin +1440 | xargs rm -rf But the output of find lists /test (and would remove it accordingly). How ...
1
vote
2answers
94 views

find path directory in sub directory

I want to find the path for directory name bbb where the parent directory called aaa For example /aaa/bbb /tmp/aaa/bbb /usr/bin/aaa/bbb /home/aaa/bbb /home/aaa/xxx/bbb So i wrote something like ...
2
votes
1answer
56 views

Can a process bring itself back to the foreground on completion? (AIX/ksh)

I have a while loop to count to 5 and echo "Done" when finished. I want to be able to execute the script in the background with "&" and continuing issuing commands while it runs. But when it's ...
2
votes
1answer
184 views

Encoding problem on aix system when logging using log4j2

I am using log4j2 to log message on aix system. In log when I use command less I can see: ...|LU?N ...|NOV�K ...|ZEM�NEK when I copy same file on my ubunty system and use same program I can see: ...
1
vote
3answers
519 views

I want to try out AIX in my pc, can i emulate it or get it to run for a very affordable price?

sorry, i'm to new to AIX. i love unix and i try different kinds. so can it be emulated with QEMU or can i buy an old IBM processor to use it? or some other easy way? thanks
1
vote
3answers
684 views

IPCS command for Shared memory and semaphore in Solaris, HP-UX and AIX

I know ipcs command for linux system, but now I'm looking for ipcs command for solaris, hp-ux and aix system, I have searched lot in websites, almost everyone suggest ipcs -am, ipcs -as or ipcs -a. ...
0
votes
1answer
28 views

How to show AIX bridge settings

While Linux has "brctl show" command, I cannot find any similar for AIX. Question: How can we show AIX bridge settings?
2
votes
1answer
47 views

make sure all lines in a textfiles don't have the same value

I have a text file that contain multiple lines. Some of the lines have contain same value. What I want is to make sure that all of the lines do not have duplicates or "triplicates". Sample: ...
2
votes
2answers
188 views

How to know when my password will expire? [duplicate]

How can I get to know when my password will expire? I'm running IBM AIX.
0
votes
0answers
707 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 ...
1
vote
1answer
346 views

How to compile shared library on AIX

I have a simple shared library that is currently compiled on Linux using: gcc -c -fPIC foo.c -o foo.o gcc -shared -o foo.so foo.o I need to relay instructions to a colleague for compiling the same ...
0
votes
3answers
118 views

Best way to obfuscate AIX script

What is the best way to obfuscate a shell script in AIX? The problem is that as a shared user, I would like that others don't know the code.
0
votes
1answer
69 views

PS1 variable inheritance between scripts and programs using bash in AIX

How can I ensure that PS1 variable in AIX bash is inherited between cross calling of scripts and programs ? Suppose a program gives to the user a shell instance such as the shell command of vi. This ...
2
votes
3answers
156 views

epoch time for GMT

On AIX date -u gives date and time in GMT format date gives date and time in local timezone date +%s gives local time in epoch time Is there a way to get GMT time in epoch format? In the AIX I'm ...
0
votes
2answers
39 views

How to open compressed file in less mode [duplicate]

How do I open a compressed file in less mode. I am able to grep using zgrep and using zcatI can open, but the file is big I want to open in less mode.
0
votes
1answer
474 views

Is there a way to comment more than one entry at a time in cron?

I know the standard way to disable a task in cron is to comment the line with the task using the # sign in front of it, as with most Unix config files or shell scripts. e.g.: 53 23 * * * ...
1
vote
0answers
128 views

Installing Graphviz & Dependencies without Internet access

I am trying to install graphviz on AIX7.1 - I have NO internet access and I have downloaded a lot of rpm files. I want to know is there a way to install the graphviz-*.ppc.rpm packages so that the ...
0
votes
1answer
130 views

How to check hcheck_interval value of a SAN disk

http://aix4admins.blogspot.co.uk/2012/05/kdb-kdb-kernel-debugger-and-kdb-command.html Question: The URL writes about local disks. But How can I check it for SAN disks? Using AIX 6. This setting ...
1
vote
1answer
112 views

Doing a 2>&1 redirection inside a script

Is it possible to run a script from within another script, and include a redirection into a log file? I'm attempting to run 3 scripts from within a larger script. One of them needs to be run "at ...
0
votes
2answers
45 views

filtering files from search

I have some files containing date and timestamp which I want to exclude from the output of ls as in: test.log.15-05-25_20:41:05.20150611 test.log.15-05-27_20:28:32.20150611 ...
0
votes
4answers
87 views

tabs in variable not working

I have this lines that i will insert in a mail called "header". header=" ------------------------------------- Name\tAge\tGender\tAddress ------------------------------------- " Unfortunately, the ...
-12
votes
1answer
114 views

What are the three mandatory checks to be done after a unix/linux reboot? [closed]

What should I immediately do after rebooting a UNIX/LINUX system? I was asked what are the three checks, so I would like to know the three. Along with their commands.
-2
votes
2answers
72 views

If a UNIX system is shutdown and it is not coming up, how do I resolve the problem? [closed]

Let's say I have remotely logged into a UNIX system and I run reboot command. The system shuts down but does not come up. What should I do now?
6
votes
4answers
491 views

Is there a way to display all the scripts called from some other script?

I have a large number of scripts that I need to modify. Each script probably calls 5 to 10 other scripts, which in turn might call several other scripts, and who knows how deep that rabbit hole runs. ...
0
votes
1answer
105 views

Mailx -E flag fails

I am using mailx command with -E flag.This is what it says in man page for linux. -E If an outgoing message does not contain any text in its first or only message part, do not send ...
1
vote
1answer
154 views

Stopping find command after finding files in one directory

I have a command in a Korn script which is like as written below, find <path1> <path2> <path3> -name filename After this, it stores the output in a txt file. Using this txt file ...
1
vote
3answers
610 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 ...
1
vote
1answer
96 views

A question about shell and .profile,.bash_profile,.bashrc

I'm on aix 7.1,my shell is bash if i did ssh ibmunix gqlplus user/pass All works and gqlplus start,gqlplus is on /opt/freeware/bin If i did from another machine ssh ibmunix "gqlplus ...
0
votes
1answer
71 views

How to skip email notification for at command in AIX?

(AIX 6.1 ) man page for at says -m option could send an email to the user. But this is the default behavior, even without specifying the -m option. Is there a way to turn this off, I do not want mails ...
5
votes
4answers
2k views

Linux as a network printer device (Raw, port 9100)

Is possible to configure a Linux computer to work as a "network printer device" ? I have an USB printer that I intend to share in the network like a native network printer device. Is that possible? ...
0
votes
2answers
188 views

Uninstall Hitachi.aix.support.rte when disk is booted over SAN

I have a server which boots of SAN and recently the storage migrated to Hitachi VSP. Earlier it was having PowerPath along with Hitachi.aix.support.rte to detect the Hitachi disks. Now we wanted to ...
0
votes
1answer
118 views

CDE and AIX nothing work

On other unix systems,simply set "dtsession" on .xstartup file of vnc start the cde session. On aix i have this problem when i start the session,appear only an error message The DT messaging system ...
1
vote
1answer
159 views

How to pass flags to IBM xlc compiler?

I want to build samba4 on aix,gcc give me error,so i want to try xlc ibm compiler But give me this error "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax ...