First of all: I suppose that PuTTYt has it ows support forum or something like that. I do not use PSFTP regularly, so I'm not a right person to be asked.
1) Password is prompted for. Where does that go in the script?
IFAIK Putty does not allow password to be stored anywhere, including script. You may use RSA key authentication instead. You may use Pageant. Alternatively, define your own stored session using Putty, associate a key with it and reuse it with PSFTP (
-load
sessionname).
2) Only -b
works – -bc
and -be
don't
I do not use it, so I cannot help. Maybe it's meant so, that you have to specify both
-b file
and
-bc
/
-be
parameter, not
-bc file
.
3) get
doesn't do anything
Make sure that there is new-line mark after
get
command. PSFTP otherwise ignores last batch line (probably bug). To be sure, add some dummy command at the end of the batch.