in reply to Suppressing backquote call display out - psftp - windows

Please read Writeup Formatting Tips. In particular, using <code> tags to surround code, though it is less important in this case.

I suspect the displayed text is being output to STDERR and not STDOUT. You should be able to redirect it to STDOUT with 2>&1, so your entire command becomes

$output = `psftp $user -pw $server -b $ftpCommands 2>&1`;

Replies are listed 'Best First'.
Re^2: Suppressing backquote call display out - psftp - windows
by Anonymous Monk on Apr 15, 2009 at 18:27 UTC
    Yeah, using 2>&1 worked perfectly. Thank you!! Sorry about not using the <code> tags. Thanks again.