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
184 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
40 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
25 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
51 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
1answer
48 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
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
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
53 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
46 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
55 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
64 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
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
68 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.
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 * * * ...
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
34 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
73 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
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
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
297 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
62 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
64 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
116 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
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 ...
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 ...
4
votes
4answers
403 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 ...
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 ...
1
vote
1answer
73 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 ...
8
votes
2answers
326 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
149 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 ...
3
votes
1answer
286 views

Want to grep a date in a file and its next 5 lines

I want to grep the current date in a file, but also output the next 5 lines. How do i do that with the grep or anything else. grep -A 5 file.txt does not work and the output is shown below. Please ...
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
1answer
125 views

How to check whether my AIX is PPC OR PPC64?

My AIX machine is currently running on 6.1 OS. I would like to know whether it is on PPC OR PPC64, Is there any command other than arch which gives the information about PPC ?
0
votes
1answer
31 views

assistance with scripting list of users

I'm new to scripting, so far I've created this: #!/bin/sh ( echo List of users in PRD echo $(date) cat /etc/passwd | awk -F: '{print $1,$3,$5}' | sort | \ while read username uid gecos do echo ...
3
votes
0answers
203 views

SSH always refuses first connection attempt

There's an AIX box where I work and so I've not got any root access to it. When I connect to it using telnet I can get on fine. When I connect to it using SSH if I put in my correct password on the ...
1
vote
0answers
56 views

How to investigate TCP, domain socket and similar activity of a process in AIX

I have to collect as much information as possible about a running production system under AIX 5.3. This must not cause any downtime and I may not install any additional software. The final goal is to ...
0
votes
0answers
48 views

X11 oddness - Installer shows squares instead of text. Font issue?

Using X11 and launching of X applications generally works (using xming). However when launching websphere installation (IBMIM) the resulting gui interfaces shows squares instead of letters. Have ...
1
vote
2answers
217 views

grep or find a pattern in all directories [duplicate]

I have an account number 1234-5678, I am trying to find it in all files of directories. I used the below command but no result found. grep "1234-5678" */ Please can someone help me how to find it in ...
1
vote
0answers
44 views

X11 forwarding to IP doesn't work on some servers. I can't find any config differences

This command allows me to send an xterm to xming on my windows desktop: xterm -display 10.13.18.125:0 (my workstation IP) For the servers that it doesn't work with the IP, It will work for some ...
0
votes
1answer
34 views

Boot to non bootable disk using Openfirmware

I tried to virtualize (VIOS partition) Debian 7.8 on IBM 9133-55A (powerpc) server. For some reason both yaboot and grub failed to install on the virtual hard disk. Now I want to start the kernel ...
2
votes
0answers
34 views

Cleanup old /dev/pts files?

My company has a policy that sweeps all files on our AIX servers to see if any are world writeable. They are upset because there are some files in /dev/pts (a few with me as owner) that are world ...
2
votes
2answers
133 views

mknfsmnt fails with “System call error number -1”

This system is part of a cluster and the other node mounts the nfs share successfully. This is currently the active node which means it has a secondary service ip address. I think this is related to ...
1
vote
0answers
129 views

rm: Directory resources is not empty

I'm getting this kind of error when i'm deleting file on my AIX machine. Getting same error for rmdir. venky-19:[/hm/dev/application/backup/ear/] # rm -rf resources rm: Directory ...
1
vote
1answer
28 views

zwrite handling of “@” symbol

I've been using zwrite to create simple message popups in AIX, and it handles @ symbols weirdly, even when they're strong quoted. I'm running these commands in ksh. As an example, echo '1 @ 2 @@ 3 ...