Quieting & background jobs in sh and ksh

Lawrence V. Cipriani lvc at cbnews.ATT.COM
Tue Oct 3 01:17:03 AEST 1989


In article <4393 at cbnewsh.ATT.COM> wcs at cbnewsh.ATT.COM (Bill Stewart) writes:
+I want to put a command into background without getting the process-id
+echoed by the shell.  I've tried variants on
+	nohup foo >/dev/null 2>&1 &
+but still get the process-id back in /bin/sh and the [jobnumber] pid
+in ksh.  Is there any way to silence this?

This will work for ksh and sh:

	(foo &) > /dev/null 2>&1
-- 
--
Larry Cipriani, att!cbsck!larry or larry at cbsck.att.com
"It seems that capitalism is not rotting away, as we were
told, but it seems to be prospering." -- Boris N. Yeltsin



More information about the Comp.unix.questions mailing list