I am just join this group, and this is my 1st post/?
I have a script like this (ftptkf.sh):
#!/usr/bin/sh
echo "Password \c: "
read pass
ftp -inv <<END
open 172.18.10.101
user `echo $LOGNAME` $pass
ls
bye
END
exit 0
this script I want to call from another system menu/script, the problem is, went user type wrong password, every system error message is come out into user screen, how do I control that. thanx in advance.
I have a script like this (ftptkf.sh):
#!/usr/bin/sh
echo "Password \c: "
read pass
ftp -inv <<END
open 172.18.10.101
user `echo $LOGNAME` $pass
ls
bye
END
exit 0
this script I want to call from another system menu/script, the problem is, went user type wrong password, every system error message is come out into user screen, how do I control that. thanx in advance.