Hey everyone,
I've got an issue. I'm trying to automate a file transfer. Here's the command I'm using.
"d:\Program Files\CoreFTP\coreftp.exe" -nocase -B -delsrc -OA sftp://username:password@IP.ADD.RE.SS:PORT/Inbox/*DCHJ* -p "D:\Path\To\Destination" -log "d:\Program Files\CoreFTP\log.txt"
The files in question all have a common DCHJ prefix (though some have a lower case c, hence the -nocase) and then go on to be unique from there. What I've found thus far is that if I don't lead off with an asterisk before the prefix, Core FTP will try to CWD to /Inbox/DCHJ*, which obviously won't work.
So that's why I lead with an asterisk. Now when I lead with an asterisk, I get all of the DcHJ files, but none of the DCHJ files. I have gone through and specified *DC*, DC*, *HJ*, and just straight up *. At this point Core FTP parses anything as a directory rather than a file to grab.
Thoughts and opinions?
Command line parsing oddity.
Update on this.
I ended up using another SCP program to see if I got a better error message. And indeed I did.
"Error converting remote path to absolute path: No such file."
This is similar to the behavior that Core FTP was giving me, though it showed up in the form of the command line incorrectly parsing the file name as part of the directory path. I now believe this to be an issue of the proprietary SSH server that is being used. I believe it is a Georgia Softworks SSH server. I will post more as I know.
I ended up using another SCP program to see if I got a better error message. And indeed I did.
"Error converting remote path to absolute path: No such file."
This is similar to the behavior that Core FTP was giving me, though it showed up in the form of the command line incorrectly parsing the file name as part of the directory path. I now believe this to be an issue of the proprietary SSH server that is being used. I believe it is a Georgia Softworks SSH server. I will post more as I know.
-
- Site Admin
- Posts: 1011
- Joined: Mon Mar 24, 2003 4:37 am
Try this instead:
"d:\Program Files\CoreFTP\coreftp.exe" -d sftp://username:password@IP.ADD.RE.SS:PORT/Inbox/*DCHJ* -nocase -ssh -B -delsrc -OA -p "D:\Path\To\Destination" -log "d:\Program Files\CoreFTP\log.txt"
Your command line didn't specify upload or download.
"d:\Program Files\CoreFTP\coreftp.exe" -d sftp://username:password@IP.ADD.RE.SS:PORT/Inbox/*DCHJ* -nocase -ssh -B -delsrc -OA -p "D:\Path\To\Destination" -log "d:\Program Files\CoreFTP\log.txt"
Your command line didn't specify upload or download.
-
- Site Admin
- Posts: 1011
- Joined: Mon Mar 24, 2003 4:37 am
"d:\Program Files\CoreFTP\coreftp.exe" sftp://username:password@IP.ADD.RE.SS:PORT/Inbox/ -d /Inbox/*DCHJ* -nocase -ssh -B -delsrc -OA -p "D:\Path\To\Destination" -log "d:\Program Files\CoreFTP\log.txt"