Try:
#!/bin/sh
HOST=192.168.1.19
/usr/bin/ftp -inv $HOST <<EOF
binary
mput *.sh
bye
EOF
Andrew
Try:
#!/bin/sh
HOST=192.168.1.19
/usr/bin/ftp -inv $HOST <<EOF
binary
mput *.sh
bye
EOF
Andrew
Andrew:
following your suggestion, I get the following output:
./send1.sh
Connected to 192.168.1.19.
220 Microsoft FTP Service
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
221
root@moneta #
connect
is not a valid command, that is why you get:
?Invalid command
You should use the open
command like this:
#!/bin/sh
HOST=192.168.1.19
USER=emm
PASSWD=emm
#printf "PASSWD is $PASSWD \n
/usr/bin/ftp -inv <<EOF
open $HOST
user $USER $PASSWD
binary
mput *.sh
bye
EOF
Hi Chubler!
Thank you that solved the problem