| Summary: | OpenSSH 3.6.1p1 - sftp exit codes and improved logging for scripting | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Magnus Forsberg <magnus> |
| Component: | sftp | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | SPARC | ||
| OS: | Solaris | ||
|
Description
Magnus Forsberg
2003-04-10 02:54:51 AEST
/usr/local/bin/sftp -v -oBatchMode=yes user@host -b answerfile.txt 2> debug.log use -b batch option. That is why it was created. It allows you to break when a command fails. RTFM (sftp manpage in this case):
-b batchfile
Batch mode reads a series of commands from an input batchfile
instead of stdin. Since it lacks user interaction it should be
used in conjunction with non-interactive authentication. sftp
will abort if any of the following commands fail: get, put,
rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
lpwd and lmkdir. Termination on error can be suppressed on a
command by command basis by prefixing the command with a â-â
character (For example, -rm /tmp/blah* ).
And yes, -DTRACE=log in sftp-server will give you more logging.
Mass change of RESOLVED bugs to CLOSED |