Difference between revisions of "Screen"
Line 3: | Line 3: | ||
Ex.: <br/> | Ex.: <br/> | ||
[guy@machine homedir]$ screen -S job1<br/> | [guy@machine homedir]$ screen -S job1<br/> | ||
+ | |||
(Nothing seems to happen, but in fact you are now in a virtual session Do something that will take a long time and will produce console output.)<br/> | (Nothing seems to happen, but in fact you are now in a virtual session Do something that will take a long time and will produce console output.)<br/> | ||
+ | |||
[guy@machine homedir]$ ls<br/> | [guy@machine homedir]$ ls<br/> | ||
caminhadas_bivaques.tex.backup fratura1.eps oito2.eps<br/> | caminhadas_bivaques.tex.backup fratura1.eps oito2.eps<br/> |
Revision as of 21:54, 9 June 2004
Screen is a program that lets you have many virtual console sessions in a machine. You may leave jobs running and then logout completely. Each jobs console output will be recovered later when you are back.
Ex.:
[guy@machine homedir]$ screen -S job1
(Nothing seems to happen, but in fact you are now in a virtual session Do something that will take a long time and will produce console output.)
[guy@machine homedir]$ ls
caminhadas_bivaques.tex.backup fratura1.eps oito2.eps
capacete.eps fratura2.eps oito3.eps
capaealma.eps fratura3.eps oitoduplo.eps
capa.eps fratura4.eps oito.eps
[guy@machine homedir]$
(Now type <CTRL-A><CTRL-D>. The screen clears and...)
[guy@machine homedir]$ screen -S job1
[detached]
[guy@machine homedir]$
Now, whenever you want to recover that jobs output, you do
[guy@machine homedir]$ screen -R -S job1
and...
[guy@machine homedir]$ ls
caminhadas_bivaques.tex.backup fratura1.eps oito2.eps
capacete.eps fratura2.eps oito3.eps
capaealma.eps fratura3.eps oitoduplo.eps
capa.eps fratura4.eps oito.eps
[guy@machine homedir]$
Here we are again.
man screen is your friend.
Enjoy!