Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!mcvax!unido!iraun1!iraul1!schuetz From: schuetz@iraul1.ira.uka.de (Elmar Schuetz) Newsgroups: comp.unix.questions Subject: Problem piping "jobs" Message-ID: <733@iraun1.ira.uka.de> Date: 7 Dec 88 10:44:26 GMT Sender: news@iraun1.ira.uka.de Organization: University at Karlsruhe, FRG Lines: 23 Hello to the wizards in this group. 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 "%+". Therefore I tried to pipe "jobs" to "tail" and "awk" or "wc -l". The problem: "jobs" does not result anything if piped. (Yes, there are jobs ...) Just try: jobs and : jobs | cat The last is always empty (under Ultrix 2.4 and SunOS 3.5). If I could kill the job with the highest number another way I wouldn't care about "jobs". Any hints are appreciated. Best regards, Elmar Please reply by email and don't followup. I'll summarize. internet, csnet, ean: schuetz@ira.uka.de bitnet: