Page 2 of 2

Re: Dayfile.txt not being uploaded

Posted: Sun 19 Aug 2012 1:06 am
by uncle_bob
I'm a bit late to the party, but I use and recommend the NcFTP command line ftp client. It's so easy.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 4:09 am
by Super-T
Not quite all good.

Running the batch file c:\cumulus\ftp-data\ftp2weather.bat (ftps -a -s:daily.ftp) works fine when done manually but not when attempting to run within Cumulus in "Internet Configuration".
Am I missing a parameter or something else that it doesn't run automatically once a day?

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 7:03 am
by steve
If you look in the diags file, it should show the command being executed, and any failures returned by Windows.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 7:42 am
by mcrossley
Terry does your script either change the path to the correct working directory, or use full paths for the files? I suspect (never checked) that Cumulus will default the current path to the system folder.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 9:07 am
by Super-T
Looks like it ran it:-
28/08/2012 00:00:00.311 : Executing external program: c:\cumulus\ftp-data\ftp2weather.bat params:
28/08/2012 00:00:00.436 : Creating backup folder C:\Cumulus\backup\daily\20120828000000\
28/08/2012 00:00:00.467 : === Day reset complete
FTP File is:-
open linux11.digiweb.net.nz
janterconz
xxxxxxxx
cd www/weather/data
put c:\cumulus\data\dayfile.txt
bye

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 9:18 am
by steve
And no error reported. But I don't know whether all errors from within a batch file (e.g. a path problem as Mark suggests) would get reported back to Cumulus. You could try changing your batch file to use full path names for the ftps command and the daily.ftp parameter.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 9:23 am
by Super-T
I was just reading the wiki and I see you do it slightly differnetly but I have tried the wiki way and that didn't work but I will try again overnight.
I just assumed that as the bat file worked manually it would run from Cumulus. Even tried lowercase everything as I've been caught by that before.

Tried the wiki way and get upload errors.
I am using MoveIt to get the FTPS so maybe that makes a difference?

Maybe I should just try it in the Scheduler.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 9:38 am
by steve
Note that for testing purposes you could put the command in the 'program' box, rather than having to wait until midnight for each run.

Re: Dayfile.txt not being uploaded

Posted: Tue 28 Aug 2012 9:40 am
by Super-T
True :-)

Tried that but nothing uploaded.
I upload at 5 minutes.

I'll try the scheduler overnight.

Re: Dayfile.txt not being uploaded

Posted: Wed 29 Aug 2012 10:03 pm
by Super-T
Seemd to work OK overnight. I added the first line of the batch file

cd\cumulus\ftp-data\
ftps -a -s:daily.ftp
pause

Even though Cumulus was pointed at the right location, it didn't find the ftp file. Same applied with the Task Scheduler as that was in c:\windows\system32 directory.

The pause is just to leave the dos window open for me to see what happened and will remove now.

Looks like the path was the problem....thanks all :-)