Page 1 of 1

Cumulus External Programs Feature

Posted: Fri 22 Jul 2011 2:57 pm
by mcrossley
Steve

Do the external programs (realtime & update intervals) get called before or after Cumulus processes any files on Internet|Files dialog?

Re: Cumulus External Programs Feature

Posted: Fri 22 Jul 2011 2:59 pm
by mcrossley

Re: Cumulus External Programs Feature

Posted: Fri 22 Jul 2011 3:03 pm
by steve
It does all the processing of the files, creates images etc, and then it initiates the ftp connection, at which point the ftp process goes asynchronous. At this point it invokes the external program.

Re: Cumulus External Programs Feature

Posted: Thu 09 Feb 2012 9:42 pm
by bigmac
Hi Steve,

Is there a log of any sort that records the action of the External Program section? Appreciate it can't log what the external program is actually doing, I'm just looking to see if it has invoked the call to an external program.

Reason I ask is that I am using an SFTP connection to another website so I am calling a script to run from WinSCP, but looking at the data presented on the website, it doesn't appear to work everytime as the timestamp is sometimes different to the website I upload to from the main FTP connection screen.
Hope that makes sense?

Cheers

Re: Cumulus External Programs Feature

Posted: Thu 09 Feb 2012 10:04 pm
by mcrossley
I'd put the logging in the script itself. If you are creating a batch script then you can log the command outputs to a file

Code: Select all

rem log the time first
echo %time% >logfile.txt
somecommand params >>logfile.txt 2>&1
anothercommand params >>logfile.txt 2>&1
etc
That will recreate the log file each run, if you want to append then change the first command to
echo %time% >>logfile.txt

edit: change time command to log the seconds as well

Re: Cumulus External Programs Feature

Posted: Thu 09 Feb 2012 10:44 pm
by bigmac
Thanks Mark, of course, that is a simple check. I was over complicating it and looking for other logging solutions. I'll give that a go.

Re: Cumulus External Programs Feature

Posted: Fri 10 Feb 2012 7:56 am
by steve
Cumulus logs a message to the diags log, but only if it gets an error back from ShellExecute.