[oclug] Scripting with Arrays ??
Dave Lewis
dlewis at ottawa.com
Sat Mar 16 00:21:22 EST 2002
Many thanks to all who replied.. I'll go away now and try the sugestions :)
Thanks again
Dave
At 11:02 PM 3/15/2002 -0500, you wrote:
>Dave Lewis wrote:
>>My problem is that I have the out put of a ps / awk command as follows
>>ps aux | awk '/glftpd/ {print $2}'
>>1287
>>9932
>>339
>>and I want to add those numbers which are pid's, to an array in a script
>>to use later to kill the processes, like
>>kill -9 $PIDNUM[$INDEX]
More information about the OCLUG
mailing list