
04-25-2007
|
|
Shell programmer, author
|
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
|
|
Quote:
|
Originally Posted by jithinravi
Hi, could anyone please tell me how can i write an interactive script so that i can connect to an FTP and pass the username and password when prompted.
...
i there any way tht i can store the usid n psswd in a file and use tht to pass the parameters to the script?
|
Read the ftp man page; pay special attention to the section on the .netrc file.
Don't use tcsh for scripting.
http://www.grymoire.com/Unix/CshTop10.txt
http://www.grymoire.com/Unix/Csh.html#uh-0
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
|