elmo@spock.adm.clarkson.edu (Paul B. Davidson,ERCTERM,2682292,2862026) (03/02/90)
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. Any suggestions? -Paul B. Davidson, elmo@spock.adm.clarkson.edu
lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (03/02/90)
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