Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!jarthur!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.questions Subject: Re: Unwanted output Message-ID: <7243@jpl-devvax.JPL.NASA.GOV> Date: 2 Mar 90 07:32:53 GMT References: <1990Mar1.175629.8287@helios.physics.utoronto.ca> <1990Mar1.234155.15705@sun.soe.clarkson.edu> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Distribution: na Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 21 In article <1990Mar1.234155.15705@sun.soe.clarkson.edu> elmo@spock.adm.clarkson.edu (Paul B. Davidson,ERCTERM,2682292,2862026) writes: : Ok, a quick, and probably simple question for you UN*X ppl out there: : I'm writing a short csh script that parses the command line, then : invokes a utility with the parsed command line. : The script backrounds the utility, and exits. : The problem is that when it backrounds (splatutil &), csh prints the job : and process numbers of the backround process, something that I do not : want to appear. If you just want to keep the output hooked to the terminal, you can say (command >/dev/tty &) >/dev/null If you want to be able to redirect the output of your script you'll have to get a little fancier. One could go wild with redirections in sh, but here's the perl way: perl -e 'fork || exec "command";' Larry Wall lwall@jpl-devvax.jpl.nasa.gov