Originally posted by: SystemAdmin
Hi
I am trying to write an automated script, i wrote a script which is indented and looks like below
mkdir /home/$user_name/cim_$dir
chmod 754 /home/$user_name/cim_$dir
echo "Enter source server"
read SOURCESERVER < /dev/tty
echo "Enter source folder"
read SOURCEDIR < /dev/tty
echo "Enter User Name for FTP the the files"
read FTPUSER < /dev/tty
echo "Enter Password for FTP the the files"
read FTPPASSWD < /dev/tty
ftp $REMOTEHOST<<!
quote USER $FTPUSER
quote PASS $FTPPASSWD
lcd /home/$user_name/cim_$dir
cd /home/$FTPUSER/hasan/cim
ascii
mget *
quit
!
when I execute the script it gives ERROR as >>>>>
USER csoei Access denied
login with user first
and some invalid command? output
now when I tried to check the command
ftp dissp15.gsa.nl.ibm.com output is as following >>>>>>
csoei@dissp15;/home/csoei/hasan $ftp dissp15.gsa.nl.ibm.com
Connected to dissp15.gsa.nl.ibm.com.
220 dissp15 FTP server (Version 4.1 Mon Aug 8 19:37:26 CDT 2005) ready.
Name (dissp15.gsa.nl.ibm.com:csoei): csoei
530 User csoei access denied.
Login failed.
ftp> ftp dissp15.gsa.nl.ibm.com
?Invalid command
ftp>
....any techie pls hlp
#AIX-Forum