v.wales%ucla-locus@sri-unix.UUCP (02/23/84)
From: Rich Wales <v.wales@ucla-locus> If you want to suppress the messages produced by the C shell when you invoke something in the background, you should put the background com- mand in a subshell (i.e., write parentheses around it) and redirect the output of said subshell to "/dev/null". For example, instead of saying this: command & say this: (command &) >& /dev/null Note that the "&" indicating a background process occurs INSIDE the parentheses. The symbol ">&" (in case there are any Bourne-shell users who aren't familiar with it) causes both the standard output and the error output to be redirected together to a file. "command" in the above may include redirection of its own (">" or ">&" variety). -- Rich <v.wales@UCLA-LOCUS.ARPA> Date: 14 Feb 84 12:56:07-PST (Tue) To: Unix-Wizards@brl-vgr From: decvax!linus!philabs!pwa-b!ocoin@ucb-vax Subject: Suppressing certain system messages Article-I.D.: pwa-b.137 I am looking for a way to suppress the system messages printed to the terminal when a job is started up in the background. I mean, for example, when this command is issued : <program> <arg list> & a message such as "[1] 1244" is sent to the terminal notifying the user of the job number and process id. When the process finishes, an exit message such as [1] Done .... is printed on the terminal. I would appreciate any suggestion anyone has on how to suppress these start and finish process messages. If you feel others would not be interested, please reply to me directly. Thank you in advance. Terence P. O'Coin P & W A E. Hartford, Connecticut path : ... {philabs,utah-gr}!pwa-b!ocoin