The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File timestamps in different servers. bperl Shell Programming and Scripting 1 03-07-2008 03:42 PM
Pls help : file stamp issue on HP UX Servers siddaonline UNIX for Dummies Questions & Answers 2 07-04-2007 08:14 AM
Latest version of a file across the servers .. Sandy Shell Programming and Scripting 2 12-16-2005 05:23 PM
Script to ping servers in a file gbarkhor AIX 1 07-05-2005 01:23 PM
file handling across servers raguramtgr UNIX for Dummies Questions & Answers 3 02-25-2004 09:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-08-2005
Registered User
 

Join Date: Nov 2005
Posts: 2
Getting a file from other servers

Hi,
I need to write a shell script which will do the below operation.

Shell script will be executed in unix server A, it should get a file/directory from unix server B and store it in unix server A. How to do this?
Reply With Quote
Forum Sponsor
  #2  
Old 11-09-2005
nimo
Guest
 

Posts: n/a
Is that with the same user ID? you can use ftp, rcp, etc.
Reply With Quote
  #3  
Old 11-09-2005
Registered User
 

Join Date: Jul 2005
Location: Chennai
Posts: 39
Yes ... u can just use ftp server name to connect to that server and download whatever u need .... ftp can be used inside the script as well ...

try something like this if u intend to do this from a shell script ...

(
echo "
open servername or ip number
user username passwd
bin
cd \"ur target path here\"
dir ur source path
mget filename
close
"
) | ftp -nv > TempLogFtp.log
Reply With Quote
  #4  
Old 11-10-2005
Registered User
 

Join Date: Nov 2005
Posts: 2
Hi,
Thanks for your reply, I know only the servername i don't know the user name and password then in that case how to do that?
Reply With Quote
  #5  
Old 11-10-2005
nimo
Guest
 

Posts: n/a
If you do not have access to that server (user name and password), then you cannot ftp or copy from it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0