[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSID, New idea



On Tue, 16 Sep 1997, Yaniv Orenstein wrote:

> Here is somthing i'v experimented with (this only applies to tcsh)
> 
> /bin/tcsh -c "pppd (bla bla bla) & ; jobs -l > /tmp/.ppp.pid";
> 
> then /tmp/.ppp.pid would look like this:
> 
> [1]    28868 Done     /usr/sbin/pppd
> 
> 
> then what is left is just to cat it with awk and finito.

first, awk can make it look better,
second, pppd forks as soon as it runs (hence the "done" status). the PID
you got is not the right one...


--------------------------------------------------------------------
Ira Abramov <ira@scso.com>   (mail ira-pgp@scso.com for the PGP key)