You may also wish to check on the prompt command.
Don't know if this would affect anything, but
in an interactive session mget * WITHOUT first
resetting prompt would cause ftp to ask you
about every file to get...
> I had dificulty with this myself, and found the easiest solution was just to
> change into the directory on the remote machine and local machine. Also
> note you are using get which cannot be given widlcards. You MUST use mget
> (multiple get). Perhaps try just changing that first, else use:
> 3. #ftp -ni ftp.something.net << EOF
> 4. #user myusername mypassword
> 5. #cd /outgoing
> 6. #lcd /etc/incoming
> 7. #mget *
> 8. #bye
> 9. #EOF
> 10. #exit
> Jeremy Sherriff
> Technical Admin
> Remove "no-spam" from my e-mail address to reply.
> >Thanks for the speedy reply on my last question but now I have just one
> >What is wrong with line 5, it seems to not find any files. If I include
> >the actual filenames it works just fin but I can't get the
> >wild-cards/globs to work. What I am trying to do is simply retrieve
> >every file in the remote directory and store it in the local directory.
> >If anyone is ambitious and would like to add the feature of it only
> >downloading new or edited files that would really help but just getting
> >line 5 to work would be just fine!
> >Also, some files, in the remote directory, are named like aaa.bbb.ccc.gz
> >and would i wild card like * or like *.*.*.gz?
> >Can anyone help?
> >1. #!/bin/sh
> >3. #ftp -ni ftp.something.net << EOF
> >4. #user myusername mypassword
> >5. #get /outgoing/*.* /etc/incomming/
> >6. #bye
> >7. #EOF
> >8. #exit
Please remove ".nojunkmail" from my
address before replying............