how to pull files from one machine to another | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

how to pull files from one machine to another

Shell Programming and Scripting


Tags
linux, linux commands

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-28-2005
jasongr jasongr is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 22 February 2006, 10:56 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
how to pull files from one machine to another

Hello

I have 2 Linux machines with a zip file residing on one of them
I am using putty to connect to my Linux files
Is there a way to copy the zip file from one Linux machine to the second
Using the putty textual interface?
If I had a visual interface, maybe I could have opened a browser, and pulled the zip file from one machine to the other, but all I have is putty

any help would be appreciated
Sponsored Links
    #2  
Old 11-28-2005
rahulrathod rahulrathod is offline
Registered User
 
Join Date: Sep 2004
Last Activity: 2 February 2010, 2:41 PM EST
Location: Mumbai-India
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Use FTP

Do a FTP connection to the other Linux machine and copy the zip files you want to the local directory.

For More help on ftp commands try google. It gives a list of webpages as the below.
http://cc.uoregon.edu/unixhelp/tasks/ftp2.1.1.html


put and get are mostly used to put files on, and get files from the connected machine respectively.

Regards,
Rahul.
Sponsored Links
    #3  
Old 11-28-2005
jasongr jasongr is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 22 February 2006, 10:56 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
I read about the rcp command
It says that I must have a .rhosts file in my login directory

In the example below, 1.2.3.4 is the IP address of the source machine
and 11.22.33.44 is the IP address of the target machine
I invoke the command from the target machine:
rcp 1.2.3.4:/usr/local/apache/htdocs/file.zip 11.22.33.44:/usr/local/apache/htdocs/file.zip

I wait a few seconds and then I get the following error:
Connection refused

any suggestions?
    #4  
Old 11-28-2005
dangral dangral is offline Forum Advisor  
Registered User
 
Join Date: Oct 2002
Last Activity: 31 July 2013, 6:52 PM EDT
Posts: 723
Thanks: 3
Thanked 4 Times in 4 Posts
Quote:
Originally Posted by jasongr
I read about the rcp command
It says that I must have a .rhosts file in my login directory

In the example below, 1.2.3.4 is the IP address of the source machine
and 11.22.33.44 is the IP address of the target machine
I invoke the command from the target machine:
rcp 1.2.3.4:/usr/local/apache/htdocs/file.zip 11.22.33.44:/usr/local/apache/htdocs/file.zip

I wait a few seconds and then I get the following error:
Connection refused

any suggestions?
Instead of rcp use scp.
Sponsored Links
    #5  
Old 11-28-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 Posts
for rcp to work --- you need the .rhosts file to exist in the target server as the user authentication/permission is bening done at that end ...

for ssh to work like rcp --- you need to have the ssh keys created in the target server under the correct sub-directory and with the correct permissions ...
Sponsored Links
    #6  
Old 11-28-2005
jasongr jasongr is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 22 February 2006, 10:56 AM EST
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
I found a very nice solution using curl
curl <url to source file> -o <url to taget file>
very fast
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to transfer files from unix machine to local machine using shell script? vidhyaS Shell Programming and Scripting 1 08-08-2011 10:27 AM
shell script to copy files frm a linux machine to a windows machine using SCP nithin6034 Shell Programming and Scripting 3 07-21-2011 12:56 AM
Cat 114 files using grep or awk to pull muliple fields sctxms Shell Programming and Scripting 4 12-16-2009 07:41 AM
How to Pull out multiple files from DB table and redirect all those files to a differetn directory? ss3944 Shell Programming and Scripting 3 11-21-2009 01:08 AM
pull files from window server to aix box prasson_ibm Shell Programming and Scripting 1 09-05-2009 04:32 AM



All times are GMT -4. The time now is 06:51 AM.