when I'm doing
ftp -in 192.168.xx.xx <<END
user $userString $pswdString
binary
send $1
bye
END
how can i know if some command of my script "ftp" isn't succesfull by example:
$userString is false
$1 don't be sent
etc...
ftp -inv 192.168.xx.xx <<END >ftplog 2>errorlog
user $userString $pswdString
binary
get $1
del $1
bye
END
I want to delete $1 if the "get" is OK. I have to do 2 scripts:
one for the get then i'm testing if $1 is on my computer
an other script for delete $1 ???????????????????
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.