![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Is that with the same user ID? you can use ftp, rcp, etc.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
If you do not have access to that server (user name and password), then you cannot ftp or copy from it.
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|