Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: In scripting you should not rely on saved sites, use this command instead

martin wrote:

Please do, what the message suggests.


Can you give us an example? We cannot hard code passwords into our powershell scripts (that's a security risk). Here is how we do it (example below from our scripts)

$winscpXCmds = ("option echo on","option batch on","option confirm off","option transfer binary","lcd $InputFilePath","open Acct713@sftphost.com","cd $OMNIStmtPath",$("get "+"FINCANCEFILE.gz"),"dir","bye")
$winscpXCmds
$winscpXCmds | winscp.com
martin

Re: In scripting you should not rely on saved sites, use this command instead

Please do, what the message suggests.
keither713

In scripting you should not rely on saved sites, use this command instead

Hi,
We need to remove this response (below) from sftp output during our transfers from version 5.13.5, please.

What parameter or patch can do this?

Reason: This output advice-message response is causing confusion when reviewing logs with our auditors when running our jobs.
Your help is appreciate.
Thanks
-Keith

Example output:
In scripting you should not rely on saved sites, use this command instead:
open sftp://mdlive:***@sftp-uat.gbophb.org/ -hostkey="ssh-rsa 1536 QB7AnCdt