I have a mental block when it comes to the UNIX command 'screen' so this is a short reminder for me.
In a UNIX shell run 'screen' to create a new session. In this you might want to run a long job.
To exit from a screen session, destroying that session in the process, type 'exit'.
To detach from the session, leaving it running, type 'Ctrl-a d'
To return to a running 'screen' session from a top level shell, type 'screen -x'. This will list all running sessions and identify each with a PID number.
To return to a specific session, when you only have one running, type 'screen -r'.
To return to a session when more than one are running add the PID to the command, e.g. 'screen -r 123'.
Archive of Tips
- ► 2013 (26)
- ► 2012 (28)
- ► 2011 (44)
- ► 2010 (40)
- Capistrano and Environment Variables
- Lightbox2 in a Rails App
- Configuring SSL on an AWS EC2 instance - Security ...
- AWS EBS Volumes and Snapshots
- UNIX screen command
- Creating and Attaching AWS EBS Volumes to an EC2 n...
- Sinatra and Passenger
- Rename a MySQL database used in a Rails Applicatio...
- RedCloth 4.2.2 and textilize in Rails 2.2
- ▼ August (9)
- ► 2008 (21)