routing error messages on background tasks

James Cameron jc at raven.bu.edu
Mon May 13 14:18:29 AEST 1991


>>>>> On 12 May 91 22:26:40 GMT, jon at chopin.udel.edu (Jon Deutsch) said:

Jon> I'm running a process in the background, and whenever
Jon> an error message is generated, it shows up on all tty's
Jon> currently in use!  

Jon> I've tried executing the program with a redirection to a file
Jon> and /dev/null with no success.  (ie: prog > /dev/null&)

Jon> Any suggestions?


How about:

prog >>& /dev/null &  (append standard and diagnostic output to /dev/null)

prog >>& ./log-file & (append standard and diagnostic output to ./log-file)

Hope that helps.  You might want to look at some shell programming books
or the man pages for more information.

jc

--
					-- James Cameron  (jc at raven.bu.edu)

Signal Processing and Interpretation Lab.  Boston, Mass  (617) 353-2879
------------------------------------------------------------------------------
"But to risk we must, for the greatest hazard in life is to risk nothing.  For
the man or woman who risks nothing, has nothing, does nothing, is nothing."
	(Quote from the eulogy for the late Christa McAuliffe.)



More information about the Comp.unix.questions mailing list