Monday, April 21, 2008

The Program "screen" Rocks!


# use screen in a script to detach a given program
screen -d -m <program_to_detach>

# list existing screen sessions
screen -ls

# attach to a previously screened program
screen -r <screen_id>

# detach from the currently attached screen session
CTRL-A, CTRL-D