sftp batch file...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stang501
    New Member
    • Jan 2008
    • 1

    sftp batch file...

    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!
Working...