[comp.unix.questions] Background Jobs?

pbanerji@eeserv1.ic.sunysb.edu (Pratip K Banerji) (05/07/91)

After a background job is completed, a message is usually displayed
telling you that its done. For example, if I type in         

          source test &

It gives a "job complete message when it is finished. Is there any
way to bypass this message?
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pratip K. Banerji              !  ***      \\\\     /|    //
pbanerji@csserv1.ic.sunysb.edu ! ** **    \   \\   / |  / /
pbanerji@sbccmail.bitnet       !         \   //   /  |/  /
"Live long and listen to good music"     \\\\  e /      / .

weimer@garden.ssd.kodak.com (Gary Weimer (253-7796)) (05/07/91)

In article <1991May6.213624.7652@sbcs.sunysb.edu>,
pbanerji@eeserv1.ic.sunysb.edu (Pratip K Banerji) writes:
|> After a background job is completed, a message is usually displayed
|> telling you that its done. For example, if I type in         
|> 
|>           source test &
|> 
|> It gives a "job complete message when it is finished. Is there any
|> way to bypass this message?

example % (source test &)

NOTE: this may not be something you want to do with 'source'.

weimer@ssd.kodak.com ( Gary Weimer )

bharat@computing-maths.cardiff.ac.uk (Bharat Mediratta) (05/07/91)

In article <1991May6.213624.7652@sbcs.sunysb.edu> pbanerji@eeserv1.ic.sunysb.edu (Pratip K Banerji) writes:
>After a background job is completed, a message is usually displayed
>telling you that its done. For example, if I type in         
>
>          source test &
>
>It gives a "job complete message when it is finished. Is there any
>way to bypass this message?

Try:

	(source test &) >/dev/null

-Bharat
--
|  Bharat Mediratta  | JANET: bharat@cm.cf.ac.uk                               |
+--------------------+ UUNET: bharat%cm.cf.ac.uk%cunyvm.cuny.edu@uunet.uucp    |
|On a clear disk...  | uk.co: bharat%cm.cf.ac.uk%cunyvm.cuny.edu%uunet.uucp@ukc|
|you can seek forever| UUCP: ...!uunet!cunym.cuny.edu!cm.cf.ac.uk!bharat       |

jimr@hp-lsd.COS.HP.COM (Jim Rogers) (05/08/91)

You can avoid all such messages by running the background job from within
a script.


Jim Rogers
Hewlett-Packard Company