end ssh session without stopping programs
I log into my redhat server with ssh. I start an ftp session between the server a public ftp server. I start a file downloading from the public ftp server to my server. If I end the ssh session between my local computer and my server, the download from the public ftp to my server stops as well.
I would like to be able to ssh to my server, start a download, and end the ssh session without stopping the download. How can I do this? |
If you run the transfer as a single command and put and ampersand "&" at the end it should stay running.
|
You can also use nohup for such things.
I think it is much more reliable... thats what I think..a :newbie: Vijayant |
Thanks!!! That is what I was looking for!
|
No problems josh..
Good to know that a newbie can also help another newbie. Take care Vijayant:) |
Another question about nohup:
I gave the command: nohup ftp Then, I opened another ssh session to view nohup.out as I connected and choose files to download. That did work, but is there a way to have the output displayed to the screen instead of the file? That would be easier than opening nohup.out after each command I type. |
Quote:
Step 1 create a .netrc file with the following text (all in one line) machine <name of the ftp server/machine> login <login> password <password> save this file.. make sure u have the file named .netrc now write the command : chmod 700 .netrc ok.. now open a new text file (lets call it input.txt) and write all the ftp commands in this file ... e.g. bin cd test1 mget dummy.zip bye and now u can straightaway write the command nohup ftp <name of the ftp server> < input.txt Check this out and do let me know if it solves ur problem.. Cheers Vijayant:newbie: |
Why not just do it all on the cli with wget?
Using an "&" will put it on the screen. |
All times are GMT -5. The time now is 10:41 PM. |