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
Help Required: Command to find IP address and command executed of a user loggedout Security 2 4 Weeks Ago 05:12 PM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2008
Registered User
 

Join Date: Oct 2007
Posts: 43
Question using rcp command

Hi All,

I am writing a shell script which will copy binaries from one remote server to local server.

I am using "rcp command". But "rcp" command asks for the login password when copying to local server.

Can anybody tell me how to pass the password through the shell script?

Thanks

Amit
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-31-2008
Registered User
 

Join Date: Apr 2007
Location: Kolkata
Posts: 81
Thumbs up

Dear Amit,

try this

ftp -n -i -v <SERVERIP> <<-ftp_end > <DIR>/ftpstatus_Log
user <LOGIN> <password>
status
bin
lcd <DESTINATIONDIR>
cd <REMOTEDIR>
mget <as u want>
bye
ftp_end

Regards,
Pankaj
Reply With Quote
  #3 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Oct 2007
Posts: 43
Thanks much Pankaj

Rgds,

amit
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:17 PM.


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

Content Relevant URLs by vBSEO 3.2.0