[comp.unix.questions] routing error messages on background tasks

jon@chopin.udel.edu (Jon Deutsch) (05/13/91)

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

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

Any suggestions?


       X-------------------+--------------+-----------------------X
       |  |   |\       |>jon@brahms.udel.edu<|  "For my 2 cents,  |
       | \|on |/eutsch |>>-----------------<<|  I'd pay a dollar" |
       X------+--------------------+--------------------+---------X

mills@ccu.umanitoba.ca (Gary Mills) (05/13/91)

In <17109@chopin.udel.edu> jon@chopin.udel.edu (Jon Deutsch) writes:

>an error message is generated, it shows up on all tty's

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

>Any suggestions?

Yes, you could try redirecting standard error as well.
-- 
-Gary Mills-         -Networking Group-          -U of M Computer Services-

jc@raven.bu.edu (James Cameron) (05/13/91)

>>>>> On 12 May 91 22:26:40 GMT, jon@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@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.)