Solved

Transfer file to another site while I'm

Posted on 1997-09-05
9
220 Views
Last Modified: 2013-12-23
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.
0
Comment
Question by:st
  • 5
  • 4
9 Comments
 
LVL 1

Author Comment

by:st
ID: 1582427
Adjusted points to 15
0
 
LVL 4

Expert Comment

by:jlms
ID: 1582428
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
 
LVL 1

Author Comment

by:st
ID: 1582429
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
 
LVL 4

Expert Comment

by:jlms
ID: 1582430
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

ftp download.com < 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:jlms
ID: 1582431
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

ftp download.com < 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
 
LVL 1

Author Comment

by:st
ID: 1582432
jlms: Quite difficult for me. Would you please give me an Actually example, so that I can follow it. Thanks a lot.
0
 
LVL 4

Expert Comment

by:jlms
ID: 1582433
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.

Because is very unlikey that you have telnet access to sites like download.com, freeware.com and others I wrote my example assuming you have telnet access to your ISP.

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
 
LVL 1

Author Comment

by:st
ID: 1582434
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
 
LVL 4

Accepted Solution

by:
jlms earned 10 total points
ID: 1582435
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now