getting the pid from the csh

Mark Brader msb at lsuc.UUCP
Thu Feb 14 12:18:44 AEST 1985


ss at wanginst.UUCP (Sid Shapiro) writes:
> So I cheerfully set off to try and figure out how to capture the pid
> that is returned when you type foo&
> 
> Well, after I exhausted all the variations I could think of, I went to
> the csh sources.  It sure looked to me like the shell simply does a
> printf of the pid.  But I'll be darned if I can redirect...

In sh, on the other hand, you need only type:	(foo&) 2>foo.pid

Mark Brader



More information about the Comp.unix mailing list