# Transfer file to another site while I'm

Is it possible that I command a FTP site to transfer a large file from that FTP site to my local ISP server and then I disconnect with my ISP while the large is just started transfering. After a half day, I connect ISP again and donwload the large file from my ISP server directly in order to gain faster downloading performance.

If it is possible, would you tell me how to do it with Telnet or MSIE or WIN95 FTP or any FTP software etc.?

Thanks.
LVL 1
###### Who is Participating?

Commented:
Then try the script I proposed to you previously.
I checked it myself and it works.
So here we go with some comments.
Create the next file, use vi or you can type:
cat - > file
Her you type the file
..
..
^D    <---- Ctrl-D to finish typing.

------------------------- The file begins in the next line-------------------
#!/bin/sh
\rm $HOME/.netrc #Creating .netrc file, it gives information for automatic ftp transfers echo "machine download.com" >$HOME/.netrc
echo "login anonymous" >>$HOME/.netrc echo "password -" >>$HOME/.netrc
chmod 700 $HOME/.netrc # Now creating the ftp commands to control the transfer # Note that for each transfer you have to put the correct # Name of the machine, directory and file. # Also notice that services like download.com actualy are # only pointers to others sites. echo "cd whatever_the_directory_is"ftp.inp echo "bi" >> ftp,inp echo "get the_file_you_want" >> ftp.inp echo "quit" >> ftp.inp # Now is time to run the ftp command: ftp download.com < ftp.inp # When the transfer is finished we delete the files # that controlled the connection. \rm ftp.inp \rm .netrc ------------------------ The file finishes in the prvious line ------------- When you have the file then use the chmod command to make it executable: chmod 755 your_file and finally execute the command: your_file & IMPORTANT: add the & symbol, then it executes in the backgrounmd and you can disconnect you session while the script works in your ISP's machine. Give it a try, if you have more basic problems (as how to create a file or something like that) we can try to work about it. 0 Author Commented: Adjusted points to 15 0 Commented: This depends on the privileges you have in each site, if the "source" site runs any UNIX flavor is very easy to make a script that transmits whatever you want to the "target site", you need to have permission to write somewhere in the "target site" of course. To do this you need telnet access to the "source" site and the posibility to make an script (wich operating system is there in this site) and permission and space in the taget site. More information about both sites (operating systems) and the access you have to them (do you have space, etc.) could be helpful 0 Author Commented: jlms:Thanks for your info. The "target site" is my ISP server where I have permission to read/write with 5MB space. The OS of the "target site" is SunOS UNIX (is3.hk.super.net). Would you please give a example that how to transmit a file from other site (up to you, eg. microsoft.com, download.com, freeware.com, etc..) to my ISP? 0 Commented: Do you have telnet access to your ISP? In case you say yes then try this: Create a file called grab_file.sh that contains this: #!/bin/sh \rm$HOME/.netrc
echo "machine download.com"  >$HOME/.netrc echo "login anonymous" >>$HOME/.netrc
echo "password -"      >>$HOME/.netrc chmod 700$HOME/.netrc

echo "cd whatever_the_directory_is"ftp.inp
echo "bi" >> ftp,inp
echo "get the_file_you_want" >> ftp.inp
echo "quit"             >> ftp.inp

\rm ftp.inp
\rm .netrc

Then change permissions to 755 and run it like:
grab_file.sh &

and log out.

If you don't have telnet access then there is no way I can imagine you can leave something running in the background while you are disconnected.

Some machine has to be running the ftp transmission, and if you are not connected has to be your ISP.
0

Commented:
In case you say yes then try this:

Create a file called grab_file.sh
that contains this:

#!/bin/sh
\rm $HOME/.netrc echo "machine download.com" >$HOME/.netrc
echo "login anonymous" >>$HOME/.netrc echo "password -" >>$HOME/.netrc

chmod 700 \$HOME/.netrc

echo "cd whatever_the_directory_is"ftp.inp
echo "bi" >> ftp,inp
echo "get the_file_you_want" >> ftp.inp
echo "quit" >> ftp.inp

\rm ftp.inp
\rm .netrc

Then change permissions to 755 and run it like:
grab_file.sh &

and log out.

If you don't have telnet access then there is no way I can imagine you can leave something running in the background while you are disconnected.

Some machine has to be running the ftp transmission, and if you are not connected has to be your ISP.
0

Author Commented:
jlms: Quite difficult for me. Would you please give me an Actually example, so that I can follow it. Thanks a lot.
0

Commented:
Actually what I wrote is an example, if you don't have UNIX experience could look scaring but is not so difficult, so if you like we can go step by step until we reach a conclusion about what you like to do.

First of all let me remind you that for this to work one of the two machines you are using has to be running the transfer while you are disconnected.

Now answer this questions for me:

-Do you have telnet access to your ISP? If you don't know or don't understand what I am talking about then you have to do your "homework" and investigate if you have telnet access.

-If you do, do you know how to begin, work and end a telnet sesion?

-If you have telnet acces: Do you have permission to execute programs and/or scripts?

0

Author Commented:
jlms:Yes, I have telnet access to my IPS and I had been followed someone's step to make a simple homepage. So, I think I can do some very simple work with telnet and I have permission to execute programes and/or scripts (But I haven't been made script file on UNIX). Thanks a lot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.