background a process: how to catch its output (error, standard out, etc)?

From: Zaigui Wang (zaigui@yahoo.com)
Date: Thu Dec 05 2002 - 13:17:35 EST


I need to run a script to start many tar sessions and
Rather than doing them one after another, I'd like to
put them in the background to achieve parallelism so
that it saves me time.

The problem is: how do I catch the output of the
backgrounded job into a log so that I can examine it
later on?

Along the same line, how do I catch the process id?
Using $! probably will do, but any other ways, e.g.
when you background a process, it will print out on
the screen the job number and pid right away. How do
you catch that?

Thanks.
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:25 EDT