Displaying 1 result from an estimated 1 matches for "test_log_2003".
2003 Apr 09
2
[Bug 542] OpenSSH 3.6.1p1 - sftp exit codes and improved logging for scripting
...enied)
Non-existing (no files on remote system)
... sftp client exit-code is 0 when running the following in a script:
#!/bin/sh
/usr/local/bin/sftp -v -oBatchMode=yes user at host < answerfile.txt 2> debug.log
echo $?
0
Answerfile:
cd /var/log/testlog/test_log
get /var/log/testlog/test_log/test_log_2003-04-08.log
Debug-log produced from running above:
...snip...
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: fd 4 setting O_NONBLOCK
...snip...
Couldn't stat remote file: No such file or directory
File "/var/log/testlog/test_log/test_log_20...