Thanks for the speedy reply on my last question but now I have just one
more!
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
2.
##=========================================================================
3. #ftp -ni ftp.something.net << EOF
4. #user myusername mypassword
5. #get /outgoing/*.* /etc/incomming/
6. #bye
7. #EOF
8. #exit