View Single Post
  #5   (View Single Post)  
Old 24th October 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

There's also the shell's built-in job control, though that introduces problems of having to save output somewhere so you can be sure you don't miss anything...

Example:

$ ./some_long_running_command.sh 2>&1 | tee some_logfile.log
<hit Ctrl-Z>
$ bg
$ <do whatever else you need to do>
$ fg # returns you to ./some_long_running_command.sh
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote