Home » Infrastructure » Unix » FTP in UNIX Shell scripting (UNIX)
FTP in UNIX Shell scripting [message #399757] |
Thu, 23 April 2009 22:06  |
venson
Messages: 7 Registered: April 2009 Location: India
|
Junior Member |
|
|
Dear all,
I dont understand the following assignment statement in my Unix shell script. I mean, i dont know what values are being sent to the variable FTP_SERVER on my script, though i kinda understood the variable may consisit of user_id, password and host of the FTP server. Any help is greatly appricated.
FTP_SERVER=`grep "login orauser password" ${HOME}/.netrc | grep ramsevr.com | cut -d" " -f2`
ftp $FTP_SERVER <<EOF
binary
cd ${DEST_DIRECTORY}
put $ftp_file $TRANSFER_FILE_NAME
quit
EOF
Also, what would be the syntax when we call FTP with user_id and password along with the HOST in Unix shell script.
|
|
|
|
|
|
|
 |
Goto Forum:
Current Time: Thu Apr 17 01:27:27 CDT 2025
|