Wednesday, April 9, 2014

Running multiple shells using screen on a remote UNIX server

If you want to run one script overnight on a UNIX server while logging off and going home for a cosy sleep, see the previous post.

However if you want to run two or more scripts overnight on a same server you have to create two or more shells after running screen and creating a session.

To create new shells within a screen session use ctrl+a c
Create as many shells as you have scripts.

Switch between shells using command ctrl+a n. It will move to the next screen.
Go to the previous screen, ctrl+a p

Run scripts.

Detach from session ctrl+a d
Go home

No comments:

Post a Comment