Topic review

Author

Message

Posted

martin

Re: Running from a ColdFusion Page

2005-04-02

brianp wrote:

I understand that the key is stored by user, so I assume there's two ways I can solve this. 1) copy the key (don't know where from / to) in the registry or 2) modify the script, a least once, to respond to the prompt "add this host key to the registry" (also, not something I know how to do in the script file) - then I assume I would be fine.

Running from a ColdFusion Page

2005-04-01 23:27

I've written a script file that functions flawlessly when I run it from the command line, however when I attempt to launch it from a ColdFusion template, I get an error in the log file saying: "The server's host key is not cached in the registry."

I understand that the key is stored by user, so I assume there's two ways I can solve this. 1) copy the key (don't know where from / to) in the registry or 2) modify the script, a least once, to respond to the prompt "add this host key to the registry" (also, not something I know how to do in the script file) - then I assume I would be fine.

Any advice would be greatly appreciated.

Gill

Re: console and script support

2005-03-10 10:43

You can run winscp3.com /script=ftp.scr in command line mode.

First you must creat ftp script named ftp.scr
Example:
option confirm off
option batch on
option transfer binary
open sftp://userid:password@host
get * DownloadFiles\
close
exit

gibic wrote:

how can i run winscp in command line mode? And can i run ftp script? how?

gibic

uz viem :)

2005-03-01 12:02

vdaka

gibic

console and script support

2005-03-01 10:53

how can i run winscp in command line mode? And can i run ftp script? how?