Difference between revisions of "Screen"

From AMule Project FAQ
Jump to: navigation, search
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.<br/>
+
[http://www.gnu.org/software/screen 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.<br/>
  
Ex.: <br/>
+
Ex.:
[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/>
+
''[guy@machine homedir]$ screen -S job1<br/>''
  
[guy@machine homedir]$ ls<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/>
caminhadas_bivaques.tex.backup  fratura1.eps                oito2.eps<br/>     
+
 
capacete.eps                    fratura2.eps                oito3.eps<br/>
+
''<pre>
capaealma.eps                  fratura3.eps                oitoduplo.eps<br/>
+
[guy@machine homedir]$ ls
capa.eps                        fratura4.eps                oito.eps<br/>
+
caminhadas_bivaques.tex.backup  fratura1.eps                oito2.eps  
[guy@machine homedir]$ <br/>
+
capacete.eps                    fratura2.eps                oito3.eps
 +
capaealma.eps                  fratura3.eps                oitoduplo.eps
 +
capa.eps                        fratura4.eps                oito.eps
 +
[guy@machine homedir]$
 +
</pre>''
  
 
(Now type <CTRL-A><CTRL-D>. The screen clears and...)
 
(Now type <CTRL-A><CTRL-D>. The screen clears and...)
  
[guy@machine homedir]$ screen -S job1<br/>
+
''<pre>
[detached]<br/>
+
[guy@machine homedir]$ screen -S job1
[guy@machine homedir]$ <br/>
+
[detached]
 +
[guy@machine homedir]$
 +
</pre>''
  
 
Now, whenever you want to recover that jobs output, you do <br/>
 
Now, whenever you want to recover that jobs output, you do <br/>
  
[guy@machine homedir]$ screen -R -S job1<br/>
+
''[guy@machine homedir]$ screen -R -S job1''
  
 
and...
 
and...
  
[guy@machine homedir]$ ls<br/>
+
''<pre>
caminhadas_bivaques.tex.backup  fratura1.eps                oito2.eps<br/>
+
[guy@machine homedir]$ ls
capacete.eps                    fratura2.eps                oito3.eps<br/>        
+
caminhadas_bivaques.tex.backup  fratura1.eps                oito2.eps
capaealma.eps                  fratura3.eps                oitoduplo.eps<br/>
+
capacete.eps                    fratura2.eps                oito3.eps       
capa.eps                        fratura4.eps                oito.eps<br/>
+
capaealma.eps                  fratura3.eps                oitoduplo.eps
[guy@machine homedir]$ <br/>
+
capa.eps                        fratura4.eps                oito.eps
 +
[guy@machine homedir]$
 +
</pre>''
  
 
Here we are again.<br/>
 
Here we are again.<br/>
man screen is your friend.<br/>
+
''[http://rucus.ru.ac.za/docs/screen/Screen-Command.html man screen]'' is your friend.<br/>
Enjoy!<br/>
+
Enjoy!
 +
 
 +
'''Note:''' [[aMule]] is a '''separate''' project and is '''not''' related to [http://www.gnu.org/software/screen Screen] in any way.

Latest revision as of 07:09, 23 July 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!

Note: aMule is a separate project and is not related to Screen in any way.