Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!lsuc!msb From: msb@lsuc.UUCP (Mark Brader) Newsgroups: net.unix Subject: Re: getting the pid from the csh Message-ID: <402@lsuc.UUCP> Date: Wed, 13-Feb-85 21:18:44 EST Article-I.D.: lsuc.402 Posted: Wed Feb 13 21:18:44 1985 Date-Received: Wed, 13-Feb-85 22:15:15 EST References: <240@wanginst.UUCP> Reply-To: msb@lsuc.UUCP (Mark Brader) Distribution: net Organization: Law Society of Upper Canada, Toronto Lines: 11 Summary: I know it's not what you asked, but in sh it's easy ss@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