- This topic has 1 reply, 2 voices, and was last updated 15 years, 1 month ago by .
-
Topic
-
QDX 5.4 Rev1 AIX 5.3
I just found something very interesting while creating a script that would automatically do things based on output from the
hciprocstatus -p command.Look at this:
Code:
/>hciprocstatus
Process State Message
————— ——– ————————————————–
troy2 dead Normal exit at Thu Aug 20 08:37:34 2009
troy3 dead Normal exit at Fri Jul 31 10:27:52 2009
troytest dead Normal exit at Fri Aug 21 09:06:23 2009
L13Tvarian_troy dead Exit time unavailable
troy1 dead Normal exit at Fri Aug 21 09:06:12 2009
L1Ftds_troy dead Exit time unavailable
hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
/>
So, this is a list of all processes in the current site and their status. Now lets try to get the status of a process not listed here.
Code:
/>hciprocstatus -p bogusfoobar
Process State Message
————— ——– ————————————————–
bogusfoobar dead Exit time unavailable
hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
/>
Just to prove there is no process in my site called bogusfoobar, here is a listing of my
/$HCISITE/exec/processesdirectory… Code:
/>echo $HCIROOT/$HCISITE
/qdxtest/qdx5.4/integrator/troytest
/>
/>ls -al $HCIROOT/$HCISITE/exec/processes
total 64
drwxrwsr-x 8 hci staff 512 Aug 21 09:20 .
drwxrwsr-x 7 hci staff 512 Jul 29 16:36 ..
drwxrwsr-x 2 hci staff 512 Aug 21 09:19 L13Tvarian_troy
drwxrwsr-x 2 hci staff 512 Aug 21 09:19 L1Ftds_troy
drwxrwsr-x 2 hci staff 512 Aug 21 09:06 troy1
drwxrwsr-x 2 hci staff 512 Aug 20 08:37 troy2
drwxrwsr-x 2 hci staff 512 Jul 31 10:27 troy3
drwxrwsr-x 2 hci staff 512 Aug 21 09:06 troytest
hsdvim1b@hci (/qdxtest/qdx5.4/integrator/troytest/bin)
/>
- The forum ‘Cloverleaf’ is closed to new topics and replies.