I'm on a linux machine.
I would like to run four perl scripts on a remote server. Each script produces a single output file but it can take hours to run. I would like to run the scripts in the background such that if I'm disconnected from the server, exit from the shell prompt or log out, it will continue running. These scripts also print out lines to the command terminal as it's running. I would like to be able check the print statements the script is printing to the command terminal.
I would normally use the screen -S
command to create a screen. Then press CTRL+A CTRL+D to detach and screen -r
to reattach to the screen but the remote server I'm on doesn't have screen. And I don't have sudo access to install it.
How do I run these 4 perl scripts at the same time in the background on the remote server?
For example say my script is called gene1.pl
, how do I do this? I tried doing nohup perl gene1.pl & >> gene1-terminal_out.txt
but it doesn't work. Again, I would like to be able look at the output on the terminal dynamically as the script is running.
at
command and/orcron
?screen
.screen
on a machine you can control, from there connect to the remote system.