468,545 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,545 developers. It's quick & easy.

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!
Jan 21 '08 #1
0 3539

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Gus M. Creces | last post: by
reply views Thread by Bernhard GŁnther | last post: by
1 post views Thread by indira | last post: by
4 posts views Thread by sa6113 | last post: by
2 posts views Thread by sivashanmugam | last post: by
1 post views Thread by ndedhia1 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.