[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] pidof command, how to get shell script running pid
- Subject: [ale] pidof command, how to get shell script running pid
- From: savithari at gmail.com (Narahari 'n' Savitha)
- Date: Fri, 20 Aug 2010 18:08:54 -0400
Friends :
Here is may first sample code
To keep a script running for ever
> #!/bin/bash
> find /
> find /
> find /
> find /
> find /
>
Then go to command line and typ
. ./p.sh to start the process
After that in a sep window
type
pidof p.sh
I expect to see a number, instead I see blank.
any idea how to get the pid of a *.sh command running.*
-Narahari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100820/3cf09a0e/attachment.html