Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!v.wales@ucla-locus
From: v.wales%ucla-locus@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: Re: Suppressing messages from C shell
Message-ID: <16872@sri-arpa.UUCP>
Date: Wed, 22-Feb-84 16:37:49 EST
Article-I.D.: sri-arpa.16872
Posted: Wed Feb 22 16:37:49 1984
Date-Received: Fri, 2-Mar-84 08:15:39 EST
Lines: 61
From: Rich Wales
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
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 :
&
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