If the process in question produces output to stdout (shows on screen while running in foreground), then use the tee command to also write to a file.
fg %1 | tee filename
That will allow on-screen output as well as write to the filename.
Last edited by bigrigdriver; 02-01-2008 at 07:30 AM.
|