Solved

Transfer file to another site while I'm

Posted on 1997-09-05
9
229 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

786 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