Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

External program failing

General news concerning announcements of new releases, forum outages etc.
Post Reply
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

External program failing

Post by gluepack »

I have no idea whether this is a mX problem or not but...

A while back, due to extended power outage that surpassed my UPS capability, MX didn't shut down properly and upon restarting my external program was not updating my website.
It is a vbs that, in turn, invokes a bat that, in turn, invokes WinSCP with parameters.
I found that, if I ran the bat manually, WinSCP worked fine but invoked from MX it didn't.
I played around with it a lot and couldn't get it to run (it is on a 15 sec gap) and then, suddenly, one time after the website showed it hadn't updated for 30 secs and I was about to despair, it worked. So, I gave it no more thought.

Now, I have the same problem (however, my despair doesn't seem to help this time). I was in the process of moving my equipment and mistakenly hit the power button on the power bar so everything shut down. The bat runs fine manually but it fails somehow when invoked from MX. If I run it as a bat from MX instead of vbs I see the dos box open (that's why I run from a vbs to obscure that) and it looks as if the first two files are ftp'd (they aren't) but then the dos box shuts too quickly to see.

Any ideas?
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: External program failing

Post by steve »

If WinSCP is actually getting invoked (it sounds like it is) then you could turn on logging in WinSCP.
Steve
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: External program failing

Post by gluepack »

Well, WinSCP was due for an upgrade anyway so I downloaded latest version and installed it and everything is fine. So, I guess it is possible that there was some corruption but what is the difference between MX invoking the bat (indirectly) and doing it manually?
I thought it was the
tasklist | find "WinSCP.com" >nul: && GOTO :eof
that was kicking in but a) it couldn't after a reboot and b) WinSCP was being invoked.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
Post Reply