Reply from jpglinux on Dec 27 at 2:49 PM Turn off interactive and auto login. Also need to escape the backslash, i.e. \\\ (Count them, there are 3) $ cat winders_ftp.sh ftp -i -n <<EOF user <windows machine name>\\\<windows user name> <windows password> bin mget * mput * quit EOF
| | | ---------------Original Message--------------- From: Sanjay Deshmukh Sent: Thursday, February 17, 2011 12:54 PM Subject: Problem with ftp in Shell Script of HP-UX Dear All When I run ftp command in HP-UX manually like ftp <ipadress> then it work successfully. But when used in shell script then it will wait for a long time until I cancel it. below is the shell script ftp -v -n ipaddress << ! user "username" "password" cd pathoffile lcd localfilepatch put filename quit ! may be waiting for username and password,but i want to use it from the shell script. please help me. thanks and Regards Sanjay | | Reply to this email to post your response. __.____._ | In the Spotlight Securing UNIX Systems. Learn more about this Toobox.com Marketplace online course. _.____.__ |
No comments:
Post a Comment