[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: jdonline at gmail.com (J. D.)
- Date: Fri, 20 Aug 2010 21:50:17 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
also the -x switch to pidof should help
pidof -x p.sh
On Fri, Aug 20, 2010 at 6:08 PM, Narahari 'n' Savitha
<savithari at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>