Page 2 of 2

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 2:59 pm
by ConligWX
meteozusterhof wrote:If I type winscp.exe in the prompt, it opens the GUI of winscp.

So WinSCP appears to be properly installed. It is the scripting part that does not seem to work.
ok instead of using winscp.exe use winscp.com

Code: Select all

winscp.com /script="C:\Cumulus\sftp-cmds.txt" /log="C:\Cumulus\winscp.log" /loglevel=2

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 4:16 pm
by mcrossley
I'd be interested to see the output from the command > dir c:\cumulus\sftp*

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 9:36 pm
by meteozusterhof
If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 9:39 pm
by meteozusterhof
Mark, that results in:

Code: Select all

C:\Cumulus>dir c:\cumulus\sftp*
 
 Directory of c:\cumulus

08/14/2017  15:09             1,899 sftp-cmds.txt.txt
08/17/2017  23:33                97 sftp.bat
               2 File(s)          1,996 bytes
               0 Dir(s)  38,999,916,544 bytes free

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 9:55 pm
by ConligWX
meteozusterhof wrote:If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.
because it doesnt find sftp-cmds.txt

you have named it sftp-cmds.txt.txt

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 10:34 pm
by meteozusterhof
YAY!!!!!! IT WORKS!

The principle problem appears indeed to have been that I hadn't noticed the redundant .txt.txt

It does now connect, produce a winscp.log, and indeed files are transfered!

For the latter, after looking at the log, I had to solve a few things, more exactly, turns out the lines in the script had to be:

Code: Select all

put "C:\Cumulus\realtime.txt" WWW/weer/realtime.txt
put "C:\Cumulus\web\index.htm" WWW/weer/index.htm
etc...

Thank you all very much for your help!!!!
:D

Re: Struggling with SFTP

Posted: Thu 17 Aug 2017 10:37 pm
by ConligWX
glad it worked. you could now turn the logging off totally or lower the debug level. levels are

0 = normal
1 = debug 1
2 = debug 2

Re: Struggling with SFTP

Posted: Fri 18 Aug 2017 8:02 am
by mcrossley
Toxic17 wrote:
meteozusterhof wrote:If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.
because it doesnt find sftp-cmds.txt

you have named it sftp-cmds.txt.txt
Thought it might be that!

Re: Struggling with SFTP

Posted: Sun 11 Feb 2018 4:42 pm
by Altocumulus
Just dropping by to ask a silly question.

Is this script instead of the extra settings in the Files Internet Configuration panel, or as well as?

You may :groan: or :bash: as appropriate :D

Re: Struggling with SFTP

Posted: Mon 12 Feb 2018 7:05 pm
by mcrossley
Instead of, and as well as ;) If you your server is using SFTP which Cumulus doesn't support you will have to do the uploads via an external script, the processing is still done by Cumulus.

Re: Struggling with SFTP

Posted: Tue 13 Feb 2018 8:42 am
by Altocumulus
Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.

Re: Struggling with SFTP

Posted: Tue 13 Feb 2018 9:44 am
by Altocumulus
Altocumulus wrote:Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.
And it's not that, so back to some further reading!

Re: Struggling with SFTP

Posted: Tue 13 Feb 2018 10:57 am
by Altocumulus
Altocumulus wrote:
Altocumulus wrote:Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.
And it's not that, so back to some further reading!
Running manually shows a fleeting view at the console.

Log file suggests connection is made, but soon disconnected.