since yesterday, I've been trying to start the execution of a command on my Ubuntu Server 12.04 from a client laptop (Ubuntu 10.04.) The connection is SSH.
I have no problem logging in to the server and executing commands from the terminal window on my client laptop.
The problem I'm having is that when I disconnect and/or close my client terminal window, the command stops running on the server.
I have basic knowledge of Unix/Linux functionality and I know that you can run a command in the background using the '&' character at the end of the command line. I tried it but still, the command stops running on the server when I disconnect the client.
FYI, the server is in my basement and the command I want to run is HandBrakeCLI (with options on the command line). I also have Webmin installed on the server so I can monitor it in a browser (for example, check the running processes.)
HandBrakeCLI, for thoses who are not familiar with it, is used to encode video and that takes hours, sometimes overnight. Since my server is always running, I want to run the command on it and disconnect the client so that I don't have to leave my laptop on all the time.
Here are a few things that I have tried in my client terminal window:
I also tried:
1/ ssh -l basement <IP address>
2/ enter password
=> logged in to the server
3/ HandBrakeCLI <options> &
=> the command starts executing and displays stuff in the terminal window
4/ Check the running processes in Webmin:
=> HandBrakeCLI running (expected)
5/ Close the client terminal window
6/ Check the running processes in Webmin:
=> HandBrakeCLI no longer running
1/ ssh -l basement <IP address> 'HandbrakeCLI <options> &'
2/ enter password
3/ check the running processes in Webmin:
=> HandBrakeCLI not running (not expected)
Since yesterday, I have tried several things and I have searched/read a lot of stuff on the internet but I haven't found the solution to my problem.
Does anybody have experience with this kind of thing? Who can help me with this task?
Thank you in advance.