ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to run a program called vina that deals with molecular docking...I am doing ssh to some other machine and running ......but if i reboot or shut down my system, the job is getting killed.....i dont want this to happen.....help me
I used nohup which is not prone to hang-ups
like
after doing ssh user@ip
I run, my script like this
nohup script.sh &===> that has the commands.....
Or disown
$ script.sh&
$ disown <pid>
$ exit
then i reboot my system, the job gets killed....in the machine where i was running my script.....
WHAT IS THE CORRECT USAGE
so that even if the parent process is killed, the child should not die
that does not make any sense. once you've logged out successfully, it is not possible to affect the script running on the remote system, by shutting down or any other event (short of logging back in again and doing something). Either you have left out some important information (like maybe it's writing data back to your system over the network?) or you are mistaken about what is causing the script to end.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.