juretta.com

Job control

January 14, 2007
Tags: Dropbox Linux Mac Unix
The nohup utility invokes command with its arguments and at this time sets the signal SIGHUP to be ignored. If the standard output is a terminal, the standard output is appended to the file nohup.out in the current directory. If standard error is a terminal, it is directed to the same place as the standard output.
macbook-sts:~ stefan$ nohup ant coremediaServerExport &
macbook-sts:~ stefan$ tail -f nohup.out
macbook-sts:~ stefan$ exit
script makes a typescript of everything printed on your terminal.
macbook-sts:~ stefan$ script
Script started, file is typescript
macbook-sts:~ stefan$ 
macbook-sts:~ stefan$ 
macbook-sts:~ stefan$ [commands...]
macbook-sts:~ stefan$ 
macbook-sts:~ stefan$ 
macbook-sts:~ stefan$ exit
exit
Script done, file is typescript
macbook-sts:~ stefan$

About

This is the defunct blog of Stefan Saasen.