[ale] PID

Geoffrey esoteric at 3times25.net
Wed Feb 27 15:22:25 EST 2002




Mazukna, Thomas wrote:
> Hi,
> 
> I am missing something trivial.
> how to get pid of a launched process under sunos5.8?
> 
> pid = `find / -name a.out & $!`

find does not return it's pid value.


> 
> or
>  
> find / -name a.out & $! > find.pid

this will not do either.

If you're running a process in the background, it's pid value is set in 
the $! variable, so do the following:

find / -name a.out &

echo $!


> 
> but something is not right. Process never gets put into background. and I
> never get the pid back :(
> I guess I need more coffee...
> 
> Tomas
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
> 
> 


-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list