Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!gummo!whuxlb!floyd!clyde!ihnp4!zehntel!hplabs!sri-unix!v.wales@ucla-locus From: v.wales@ucla-locus@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: question on csh Message-ID: <12275@sri-arpa.UUCP> Date: Mon, 3-Oct-83 15:00:32 EDT Article-I.D.: sri-arpa.12275 Posted: Mon Oct 3 15:00:32 1983 Date-Received: Thu, 6-Oct-83 04:06:11 EDT Lines: 30 From: Rich Wales Can anyone tell me how to supress the [1] [12345] [1] +Done messages when running a program in the background from a csh script? I don't know any way to tell /bin/csh not to produce the above output, but you can throw said noise away by enclosing the background command in parentheses (causing it to be executed by a subshell), then adding ">& /dev/null" to it (causing the error output from said subshell to be discarded). For example, instead of: blah & say the following: (blah &) >& /dev/null Note that the background symbol ("&") must be INSIDE the parentheses. The redirection to /dev/null will NOT affect the output of the command itself, by the way -- all it will do is discard the messages produced by the subshell itself. The noise seems to be lower when using "sh" in the non- interactive mode. /bin/sh spits out the process ID when you fork a background process, but it doesn't inform you when the process terminates.