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

4
votes
5answers
173 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
0answers
38 views

Autocomplete not working on mounted directory in AIX 6

I have a Linux server (linux_server) which acts as NIS. There are two directories that are exported: /netdata and /nethome, which contains several users' folder and folders/files specific to users. ...
1
vote
2answers
47 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
23 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
21 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: ...
4
votes
1answer
1k views

How to get start time for a defunct process on AIX?

When I run the following commands on AIX: 22:root@SERVER:/root # ps -ef | head -1 UID PID PPID C STIME TTY TIME CMD 22:root@SERVER:/root # ps -ef | grep defunct | head -1 ...
0
votes
1answer
586 views

Mounting LUN in AIX

I have LUN created and added to AIX, I know this because once I created the LUN and the name I gave in the IBM storage is displayed and also I used the following commands chdev -l hdisk7 -a pv=yes ...
1
vote
3answers
50 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
0
votes
2answers
2k views

Why doesn't alias work in AIX (Korn shell, .profile)?

I have these files in my home directory: drwxr-xr-x 3 meuser staff 256 Oct 12 13:11 . drwxr-xr-x 102 bin bin 4096 Sep 30 12:28 .. -rw------- 1 meuser staff ...
0
votes
1answer
41 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. ...
5
votes
2answers
3k views

How to identify executable path with its PID on AIX 5 or more

On AIX 5 or 6, `ps -ef` shows the executable full path randomly. Why and how to determine it? I find many thread through internet and also Unix & Linux and this stack overflow post about finding ...
2
votes
1answer
1k 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 | ...
0
votes
1answer
19 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
4answers
860 views

AIX 'rm' command has no '-v' parameter for verbose output

The AIX rm command has no -v parameter for verbose output as stated by IBM's documentation. Normally I would run (in linux) rm -rfv <myfile> to (r)ecursively and (f)orcably delete files and ...
2
votes
1answer
45 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
52 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
3answers
62 views

Best way to obfuscate aix script

What is the best way to obfuscate shell script in aix? The problem is that is a shared user and I would like to the other don't know the code.
0
votes
0answers
42 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 ...
3
votes
3answers
2k views

How to search files where two different words exist?

I'm looking for a way to search files where two word instances exist in the same file. I've been using the following to perform my searches up to this point: find . -exec grep -l "FIND ME" {} \; ...
1
vote
1answer
48 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 ...
5
votes
5answers
7k views

Next day of the user entered date - date +1 day

I am new to scripting. I need a script in the AIX environment to get the next days date based on the date entered by the user. After hard time browsing for this, I got a piece of code which does the ...
0
votes
1answer
35 views

PS1 variable inheritance between scripts and programs using bash in AIX

How to ensure that PS1 variable in AIX bash is inherited between cross calling of scripts and programs ? Suppose a program that give to the user a shell instance like the shell command of vi. This is ...
1
vote
3answers
67 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
33 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.
1
vote
0answers
40 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
39 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 * * * ...
0
votes
1answer
33 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
70 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 ...
2
votes
2answers
1k views

AIX 6.1 — Without root can I get the last failed login for a user i have access to?

I know the information is in the security files but I don't have access and it's more work then I want to do to go to our Unix admins to get the information (everytime the account gets locked which is ...
0
votes
2answers
39 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
1answer
51 views

Show AIX operator panel status

Is possible to see codes on the operator panel of P5 IBM workstation from console?
0
votes
4answers
49 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 ...
-11
votes
1answer
91 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
55 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
296 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
61 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
63 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 ...
17
votes
5answers
57k views

How to strip multipe spaces to one using sed?

sed on AIX is not doing what I think it should. I'm trying to replace multiple spaces with a single space in the output of IOSTAT: # iostat System configuration: lcpu=4 drives=8 paths=2 vdisks=0 ...
1
vote
3answers
105 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
40 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 ...
1
vote
1answer
58 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 ...
4
votes
4answers
386 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
67 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 ...
2
votes
2answers
3k views

Diagnose high swap usage on AIX

Which would be the best approach to diagnose high SWAP usage on an IBM AIX 6.3 machine? I've already tried with lsps -a and lslv. But also I'm looking for a strong scenario, like using topas. Any ...
2
votes
2answers
2k views

AIX ftpd - how to set umask for a given user?

I know how can I change the umask settings for all the users using ftpd, but how can I change the umask for a given user using FTPD? AIX/6100-05-02-1034 FTP server (Version 4.2)
1
vote
1answer
71 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 ...
2
votes
1answer
186 views

Perl fails to set locale on AIX 7.1

After setting user language to Chinese with GB18030 encoding in SMIT, the following env variable were added to the user's .profile: LANG=Zh_CN LC_MESSAGE=%l.%c ...
8
votes
2answers
324 views

Unix: a question about xargs

On AIX (but this happens on HP-UX as well), I have GNU ls in my path and it is also aliased as ls. But when i use xargs, it uses the standard Unix ls instead of the alias. For example (flocate is a ...
0
votes
2answers
143 views

File transfer from AIX to Windows - CR and LF issues (Control Characters)

I have an issue transferring files between Unix(AIX) and Windows. I use the following mount command to mount a Windows folder on Unix. mount -v cifs -n /admin/@dmin -o ...