wcs) (09/30/89)
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? Thanks; Bill -- # Bill Stewart, AT&T Bell Labs 4M312 Holmdel NJ 201-949-0705 ho95c.att.com!wcs # also found at 201-271-4712 tarpon.att.com!wcs Somerset 4C423 Corp. Park 3 # More Colombians die from American tobacco than Americans from Colombian coke.
lvc@cbnews.ATT.COM (Lawrence V. Cipriani) (10/02/89)
In article <4393@cbnewsh.ATT.COM> wcs@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@cbsck.att.com
"It seems that capitalism is not rotting away, as we were
told, but it seems to be prospering." -- Boris N. Yeltsin
childers@avsd.UUCP (Richard Childers) (10/04/89)
wcs@cbnewsh.ATT.COM (Bill Stewart 201-949-0705 ho95c.att.com!wcs) 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? I've used something like this with the csh successfully : ( command arg1 arg2 argN >& /dev/null ) & >& /dev/null ... I'm not sure how it'd work in a ksh environment, though ... ># Bill Stewart, AT&T Bell Labs 4M312 Holmdel NJ 201-949-0705 ho95c.att.com!wcs -- richard ># More Colombians die from American tobacco than Americans from Colombian coke. Ain't it the truth ??!! -- * "Domains constitute a futile attempt to defeat anarchy and otherwise * * retard progress." (Steve Bellovin, Peter Honeyman, pathalias(l)) * * * * ..{amdahl|decwrl|octopus|pyramid|ucbvax}!avsd.UUCP!childers *