Displaying 1 result from an estimated 1 matches for "bboyl".
Did you mean:
boyl
2010 Feb 25
1
sftp Batchmode command level error suppression does not work?
...We want the ftp to fail if it can't cd tmp
Run as is (second round)
sftp> mkdir tmp
Couldn't create directory: Failure
(which is expected - directory exists)
Run with -mkdir prefix
sftp> -mkdir tmp
Invalid command.
sftp> cd tmp
sftp> put rpt.list
Uploading rpt.list to /home/bboyle/tmp/rpt.list
sftp> bye
Note, the line -mkdir tmp is not recognized as a command
If I change the script to -mkdir xtmp (new dir)
sftp> -mkdir xtmp
Invalid command.
sftp> cd xtmp
Couldn't canonicalise: No such file or directory
Does not mkdir - ignores the entire command
Cd fails (a...