users:guides:screen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
users:guides:screen [2020/10/08 08:07] – admins_ceab | users:guides:screen [2020/10/08 08:14] (current) – admins_ceab | ||
---|---|---|---|
Line 10: | Line 10: | ||
We learn to use Screen with the program Mr Bayes in a node of the cluster. Without screen we had to keep the terminal open all the time (and if it is closed accidentally MrBayes will be interrupted). So: | We learn to use Screen with the program Mr Bayes in a node of the cluster. Without screen we had to keep the terminal open all the time (and if it is closed accidentally MrBayes will be interrupted). So: | ||
- | 1. Connection with te cluster as usual: | + | 1.- Connection with te cluster as usual: |
``` | ``` | ||
Line 16: | Line 16: | ||
``` | ``` | ||
- | 2. Start a screen session with an id label | + | 2.- Start a screen session with an id label |
``` | ``` | ||
~$ screen -S pruebaScreen | ~$ screen -S pruebaScreen | ||
``` | ``` | ||
+ | |||
Here we don't notice any change, it's like use the command ' | Here we don't notice any change, it's like use the command ' | ||
- | 3. Now let's do a qlogin with the resources that we'll need: | + | 3.- Now let's do a qlogin with the resources that we'll need: |
``` | ``` | ||
@cluster-ceab: | @cluster-ceab: | ||
Line 35: | Line 38: | ||
``` | ``` | ||
- | 4. Execute the program, in this example, Mr Bayes | + | 4.- Execute the program, in this example, Mr Bayes |
``` | ``` | ||
@node108:~$ mpirun -np 4 / | @node108:~$ mpirun -np 4 / | ||
Line 57: | Line 61: | ||
MrBayes > | MrBayes > | ||
``` | ``` | ||
+ | |||
This step is important. Now we will exit from our ' | This step is important. Now we will exit from our ' | ||
+ | |||
``` | ``` | ||
Line 66: | Line 72: | ||
Now we can exit even from the cluster, our program will keep running | Now we can exit even from the cluster, our program will keep running | ||
- | 6. After log in again to cluster-ceab, | + | 5.- After log in again to cluster-ceab, |
+ | |||
``` | ``` | ||
miguel.omullony@cluster-ceab: | miguel.omullony@cluster-ceab: | ||
Line 88: | Line 96: | ||
screen -r < | screen -r < | ||
``` | ``` | ||
+ | |||
or | or | ||
+ | |||
``` | ``` | ||
screen -d -r < | screen -d -r < | ||
``` | ``` | ||
- | 7. When the program has ended and we want to close the screen session. First close the program if it's opened. | + | 6.- When the program has ended and we want to close the screen session. First close the program if it's opened. |
Then exit the node to close the qlogin and finally exit again to close the screen session | Then exit the node to close the qlogin and finally exit again to close the screen session | ||
Line 102: | Line 112: | ||
#again it's like use the command clear | #again it's like use the command clear | ||
+ | |||
``` | ``` | ||
+ | |||
If I press up key: | If I press up key: | ||
+ | |||
+ | |||
``` | ``` | ||
miguel.omullony@cluster-ceab: | miguel.omullony@cluster-ceab: | ||
Line 109: | Line 123: | ||
miguel.omullony@cluster-ceab: | miguel.omullony@cluster-ceab: | ||
``` | ``` | ||
+ | |||
This is an example. I will use this to indicate our terminal ' | This is an example. I will use this to indicate our terminal ' | ||
+ | |||
+ | |||
``` | ``` | ||
---------------------------------------------- N | ---------------------------------------------- N |
users/guides/screen.1602144421.txt.gz · Last modified: by admins_ceab