TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:6767] Re: [SCALUG] Re: [TCLUG:6728] csh question



On 29 Jun, Troy A Johnson wrote:
> I think there are versions of "ps" that will allow you to compare some
> process group id to some other process id and you will get a yes or no
> answer wether it is a background process, but the person I am asking this
> for has a version of "ps" that doesn't provide all the info needed. 
> 
How about just calling ps ax and grep for $$, your own PID and check if
the tty is '?'.  I did a quick check of this with my seti process and
it's not using a tty, so this should work.
-- 
Jon Schewe
schewe@tcfreenet.org
http://tcfreenet.org/~schewe