michaelsanford
Translator, Web Developer
This might be a bit of a silly question, but how do I run a regular command-line tool as a daemon?
My reason: I want to use CURL or FTP to download a huge file from a remote server, onto another remote server. I can't be reliably connected (to my terminal) for the entire duration of the download, so if it gets to 99% and my terminal connection dies, so does the shell that's running curl or ftp, and bye bye download.
Do I need to write my own command-line tool to do this, or can I just su to root and run the command backgrounded with & ?
(I was sure there was a post about this somewhere but I couldn't find it...)
My reason: I want to use CURL or FTP to download a huge file from a remote server, onto another remote server. I can't be reliably connected (to my terminal) for the entire duration of the download, so if it gets to 99% and my terminal connection dies, so does the shell that's running curl or ftp, and bye bye download.
Do I need to write my own command-line tool to do this, or can I just su to root and run the command backgrounded with & ?
(I was sure there was a post about this somewhere but I couldn't find it...)