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
.netrc file jithinravi UNIX for Dummies Questions & Answers 1 04-26-2007 03:01 AM
.netrc file grandtheftander UNIX for Dummies Questions & Answers 2 07-26-2006 09:10 AM
how to encript password in .netrc file getgopu25 Shell Programming and Scripting 1 06-13-2005 04:16 AM
netrc file encrypted password ggowrish UNIX for Advanced & Expert Users 2 06-17-2004 02:15 AM
hpux startup process, AUTO file? yls177 HP-UX 5 11-11-2002 04:34 PM

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

Join Date: Jun 2005
Posts: 2
auto-connect with out .netrc file

Hi all,

Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code
ex: ftp -i <remote system name>

from now i should NOT use .netrc file
how can i login automativally with out asking userid and pqssword.
note: i am working on solarish machine

i want similary any otnher method
ex: ftp userid/password@remot system name.
Reply With Quote
Forum Sponsor
  #2  
Old 06-10-2005
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
ftp -n Suppresses auto-login upon initial connection.
e.g.
Code:
ftp -nvi $server <<EOF
user $user $password
cd $directory
put $filename
bye
EOF
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 05:25 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