Click to See Complete Forum and Search --> : Is this possible?
eXtremist
03-15-2001, 11:15 AM
Is this possible with linux:
telnet home from university..
start downloading redhat iso...
disconnect from home but keep download going...
burn CD when I get home...
or, when I disconnect do all of the programs I'm running terminate?
§ilhouette
03-15-2001, 11:16 AM
Nope, when you exit your telnet session your ftp session will keep downloading merrily (unless you get disconnected by some other reason, of course).
prince_kenshi
03-15-2001, 11:18 AM
If I'm not mistaken, you can tell the program downloading to run in the background and then it won't close when you log out. I think this because I've opened programs in the background before locally and logged out and they were still running. I would think the same of telnet and ssh.
eXtremist
03-15-2001, 11:39 AM
Would someone be able to tell me the exact commands to do this?
if I give the "!" command during FTP, I can't logout..
prince_kenshi
03-15-2001, 01:13 PM
Well I just proved to myself that you can use control characters through the Linux ftp, but I'm not sure about the Windows one. Basically what you need to do is telnet in and get the ftp started as usual. Then, when it's doing what you want, press ctrl+z and it will suspend it and give you a job number which will probably be %1. Type "bg %1" and it will run in the background. Then you can close telnet and go on with your business. You might have to kill ftp when you get home though.
I don't know for sure if it kills what you're doing or not but one way to get around it is to use screen. It's like a virtual Virtual console within a telnet session wrapped up in goodness. Give it a look see...
When you telnet in type "screen".
start your ftp session.
("screen -r pid.tty.host" to get back to that session later)
Close the telnet window and your computer is downloading away without you.
an example:
[ep0k@redswirl ~]$ screen
[ep0k@redswirl ~]$ ftp 192.168.1.21
Connected to 192.168.1.21.
220 crappy Microsoft FTP Service <version 3.0>
Name <192.168.1.21:ep0k>: ep0k
331 Password required for ep0k.
Password:
230 User ep0k logged in.
Remote system type is Windows_NT.
ftp> mget libranet-1386-1.9.0.iso
Then just close your telnet window...
If you want to see if it's still going just telnet in type 'w' to see what's goin on on your box ... you should see your ftp session in there somewhere...
enjoy.