You need(?) to put ftp into non-interactive mode, and tell it where it
should stop listening to your script...
4. ftp -ni ftp.something.net << EOF
5. user myusrname mypassword
6. get /outgoing/*.* /etc/incoming/
That tells it to take commands from the script instead of your keyboard
until it hits the marker "EOF".
Remove "no-spam" from my e-mail address to reply.
>I am trying to get the following shell script to run from a cron job but
>the script doesn't seem to get past line 4. Can anyone help?
>2. # Line numbers are only for reference and are not included in the
>4. ftp -n ftp.something.net
>5. user myusrname mypassword
>6. get /outgoing/*.* /etc/incoming/