Problem piping "jobs"

Elmar Schuetz schuetz at iraul1.ira.uka.de
Wed Dec 7 20:44:26 AEST 1988


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 at ira.uka.de
	bitnet: <out of order>



More information about the Comp.unix.questions mailing list