I am trying to get a file by doing ftp to the server.
The below script works fine but as I type password it is displayed as simple text.
HOST='192.108.245.101'
echo 'username: '
read USER
echo 'password:'
read PASSWD
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd
cd /home/seo/hitendra
get tttt.sh
prompt off
quit
END_SCRIPT
exit 0
I want that password is displayed as * or blank so that password is not revealed to others.
When run
/home/seo/hitendra/
$ unix_10.sh
username:
hitenc
password:
unix_unix007
Local directory now /home/seo/hitendra/
Interactive mode off.
I want to enter the username in the same line not like the above where after displaying the text username the control comes to the new line.
Also It does not display the messages of ftp like command succesfull and others.