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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-10-2005
getgopu25 getgopu25 is offline
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.
  #2 (permalink)  
Old 06-10-2005
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
ftp -n Suppresses auto-login upon initial connection.
e.g.
Code:
ftp -nvi $server <<EOF
user $user $password
cd $directory
put $filename
bye
EOF

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0