Path: utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re^2: Problem piping "jobs" Message-ID: <1811@solo9.cs.vu.nl> Date: 14 Dec 88 16:20:00 GMT References: <733@iraun1.ira.uka.de> <253@tfli.UUCP> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 22 mikej@tfli.UUCP (Michael R. Johnston) writes: \In article <733@iraun1.ira.uka.de> schuetz@iraul1.ira.uka.de (Elmar Schuetz) writes: \>I want to "kill -9" the latest submitted job in a csh-environment. \>I mean the job with the highest number. Note, this is not always "%+". \NOTE: Your last process does NOT necessarily have to be the highest numbered \process attached to your tty. In particular processes wrap around after \a certain point and start from the bottom again. Elmar was talking about the highest JOB NUMBER, not process id: % jobs -l [1] 29479 Stopped nn [2] - 29617 Stopped vi pipo [3] + 29622 Stopped cat > foobar ^ job number -- fcntl(fd, F_SETFL, FNDELAY): |Maarten Litmaath @ VU Amsterdam: let's go weepin' in the corner! |maart@cs.vu.nl, mcvax!botter!maart