Quiet background proc. in CSH
Maarten Litmaath
maart at cs.vu.nl
Fri Nov 17 23:17:35 AEST 1989
In article <4491 at blake.acs.washington.edu> wiml at blake.acs.washington.edu (William Lewis) writes:
\
\ I've written a shell script (in C shell; it's a .login script) that
\invokes a couple of background pipes. The pipes work fine but when they
\finish, they print a
\
\ [1] Done ( blah blah very long pipe here ... )
\
\ message. Is there any way to get rid of this message? Preferably a way
\that would also get rid of the
\
\ [1] 5628
\
\ message as well, [...]
You could put the pipelines in a separate script:
% cat .login
...
background_script < /dev/null >& /dev/null
...
% cat background_script
#!/bin/csh -f
pipeline_1 &
pipeline_2 &
...
If your `background_script' could be written just as easily in Bourne shell
language:
% cat background_script
#!/bin/sh
(
pipeline_1 &
pipeline_2 &
...
) &
...which gives control back to .login faster.
--
[...] like a roving gang. "Ah, here's a NEW almost-empty group to post train
schedules and core dumps in!" (Joe Buck) | maart at cs.vu.nl, mcsun!botter!maart
More information about the Comp.unix.questions
mailing list