Hi
could anyone show me how to do this please?
I want to have a cron job to do the ftp from 1 Sun box to another and grab files with current date. Everything is put in a script, but I don't know how to make ftp automatically enter username and password at the ftp command. Here is what I want to do:
mySunbox>ftp 123.456.78.90
(enter username is: babeo
password: babeo)
lcd /NewFile
# I want to set the local directory at NewFile to save my
# ftp files in here
cd /TodayFile
# I want to change to the directory TodayFile
mget file$mmdd*
sleep 180
quit
==================
Thanks
could anyone show me how to do this please?
I want to have a cron job to do the ftp from 1 Sun box to another and grab files with current date. Everything is put in a script, but I don't know how to make ftp automatically enter username and password at the ftp command. Here is what I want to do:
mySunbox>ftp 123.456.78.90
(enter username is: babeo
password: babeo)
lcd /NewFile
# I want to set the local directory at NewFile to save my
# ftp files in here
cd /TodayFile
# I want to change to the directory TodayFile
mget file$mmdd*
sleep 180
quit
==================
Thanks