Questions tagged [aix]

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.

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.

Resources

1819 questions
2823
votes
17 answers

How to mkdir only if a directory does not already exist?

I am writing a shell script to run under the KornShell (ksh) on AIX. I would like to use the mkdir command to create a directory. But the directory may already exist, in which case I do not want to do anything. So I want to either test to see that…
Spike Williams
  • 35,795
  • 13
  • 48
  • 60
232
votes
14 answers

How to get the command line args passed to a running process on unix/linux systems?

On SunOS there is pargs command that prints the command line arguments passed to the running process. Is there is any similar command on other Unix environments?
Hemant
  • 3,893
  • 6
  • 27
  • 22
79
votes
8 answers

Find files in created between a date range

I use AIX via telnet here at work, and I'd like to know how to find files in a specific folder between a date range. For example: I want to find all files in folder X that were created between 01-Aug-13 and 31-Aug-13. Observations: The touch trick…
sanjuro8998
  • 1,161
  • 2
  • 14
  • 22
52
votes
4 answers

How to ignore conflicts in rpm installs

I have a bunch of rpm files in a folder. I am trying to install them using: rpm -ivh *.rpm so rpm can take care of the correct installation order. On some of these rpms I have a newer version installed in my system so I get for example: package…
Cobra Kai Dojo
  • 1,018
  • 2
  • 12
  • 25
48
votes
6 answers

How to runtime debug shared libraries?

Can anyone tell me how to do runtime debugging on shared libraries? I need to runtime-debug a function in my shared library, but its called by another program. How can I do something like dbx with shared libraries? I m using dbx on AIX. is gdb…
debugger
41
votes
2 answers

Getting an error - AttributeError: 'module' object has no attribute 'run' while running subprocess.run(["ls", "-l"])

I am running on a AIX 6.1 and using Python 2.7. Want to execute following line but getting an error. subprocess.run(["ls", "-l"]) Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no…
nisarga lolage
  • 531
  • 1
  • 5
  • 14
40
votes
1 answer

Why can "%.10f" % Decimal(u) emit a string with a literal colon?

When formatting a number to be printed, 12 digit numbers are being formatted with a colon immediately after the dot. Why is this happening? This is Python 2.7 on an AIX system. $ uname -a ; /opt/bin/python2.7 AIX myserver 1 6 00F6A5CC4C00 Python…
harleypig
  • 1,264
  • 8
  • 25
38
votes
6 answers

Create a copy of a table within the same database DB2

Is there an easy way to copy a table to the same database of course with different name. I tried some of these listed below, db2 "CREATE TABLE SCHEMA.NEW_TB COPY AS SELECT * FROM SCHEMA.OLD_TB WHERE 1 = 2" db2 "SELECT INTO SCHEMA.NEW_TB FROM…
Govind Kailas
  • 2,645
  • 5
  • 22
  • 24
37
votes
13 answers

Changing an AIX password via script?

I am trying to change a password of a user via script. I cannot use sudo as there is a feature that requires the user to change the password again if another user changes their password. AIX is running on the system. unfortunately, chpasswd is…
Grushton94
  • 603
  • 1
  • 7
  • 17
30
votes
4 answers

ORA-00060: deadlock detected while waiting for resource

I have a series of scripts running in parallel as a nohup on an AIX server hosting oracle 10g. These scripts are written by somebody else and are meant to be executed concurrently. All the scripts are performing updates on a table. I am getting the…
wowrt
  • 737
  • 2
  • 8
  • 9
24
votes
13 answers

Unix: fast 'remove directory' for cleaning up daily builds

Is there a faster way to remove a directory then simply submitting rm -r -f *directory* ? I am asking this because our daily cross-platform builds are really huge (e.g. 4GB per build). So the harddisks on some of the machines are frequently running…
anon
23
votes
7 answers

Unix cp argument list too long

I am using AIX. When I try to copy all the file in a folder to another folder with the following command: cp ./00012524/*.PDF ./dummy01 The shell complains: ksh: /usr/bin/cp: 0403-027 The parameter list is too long. How to deal with it? My folder…
lamwaiman1988
  • 3,729
  • 15
  • 55
  • 87
22
votes
10 answers

What is the unix command to see how much disk space there is and how much is remaining?

I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.
Brian
  • 13,412
  • 10
  • 56
  • 82
19
votes
5 answers

Managing error handling while running sqlplus from shell scripts

#!/bin/sh echo "Please enter evaluate database username" read eval_user echo "Please enter evaluate database password" read eval_pass echo "Please enter the database name" read db_name LOGFILE=shell_log.txt $ORACLE_HOME/bin/sqlplus -s /nolog…
roymustang86
  • 8,054
  • 22
  • 70
  • 101
18
votes
5 answers

Linux: How to find the list of daemon processes and zombie processes

I tried checking on Google, but I couldn't find much information related to the actual question. How do I get a consolidated list of zombie processes and daemon processes? How do I do it on different operating systems. Linux? AIX? Windows? I am…
kris123456
  • 501
  • 1
  • 5
  • 15
1
2 3
99 100