I have an sftp batch file that has a few lines with mget's. The problem I am having is that when the mget command does not find any file that matches the pattern, it kicks me out of the script without executing the rest of the commands. Is there any sort of switch (or something along those lines) that I can use to get around this?
Here's a simple example of what is happening)
mget 837*2008.TXT
mget 837*2007.TXT
mget 837*2006.TXT
If there are no files that match 837*2008.TXT, then the script stops...
Thanks in advance!
Here's a simple example of what is happening)
mget 837*2008.TXT
mget 837*2007.TXT
mget 837*2006.TXT
If there are no files that match 837*2008.TXT, then the script stops...
Thanks in advance!