Upload Dayfile: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,493 bytes removed ,  15:54, 2 November 2018
m
Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/"
(Added information about Cumulus 'Daily' external program option.)
m (Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/")
 
(5 intermediate revisions by 2 users not shown)
Line 6: Line 6:


Starting with version 1.9.2, Cumulus now has the ability to invoke a command or external program once a day. This is configured via the ''Configuration | Internet Options | External Programs ''dialog box. Whatever is entered in the "Daily" section will be invoked once a day, just after the daily rollover processing is completed.  
Starting with version 1.9.2, Cumulus now has the ability to invoke a command or external program once a day. This is configured via the ''Configuration | Internet Options | External Programs ''dialog box. Whatever is entered in the "Daily" section will be invoked once a day, just after the daily rollover processing is completed.  
This option in Cumulus can be used instead of the Windows Task Scheduler (which is detailed below) to invoke a script or program, and may be perferable in many circumstances.
<br>
Below are details on how to automate the upload of the dayfile.txt once per day, just after midnight. If your roll over is set to 9/10am you would adjust this to upload just after the roll over. Leave a few minutes at roll over time for Cumulus to complete its work before you upload.


= Automation  =
= Automation  =
Line 18: Line 12:


*A script for uploading (ftp'ing) the file  
*A script for uploading (ftp'ing) the file  
*A batch file to run the command to upload  
*A batch file to run the command to upload
*The Windows Task&nbsp;Scheduler (AT)


== The script  ==
== The script  ==
Line 52: Line 45:


<br>  
<br>  
== Cumulus settings ==


== The Windows Task Scheduler  ==
On the Internet Settings screen, put <tt>c:\cumulus\upload-dayfile.bat</tt> in the Daily box. Leave the params empty.
 
Now we tell Windows how often to run our script.
 
*Click Start, Run and type <tt>cmd</tt> press Return


:If you are using Windows 7 you need Admin privileges to set the scheduler. Click Start, All Programs, Accessories. Right Click on 'Command Prompt' and select 'Run as Administrator' You may be asked to confirm this elevation of security privileges (temporarily)


*A black box (command console) will appear
*Type, or copy:
<pre>at 00:10 /every:M,T,W,Th,F,S,Su "c:\cumulus\upload-dayfile.bat"</pre>
:Change the end of the command to the location of the Batch file you created above
:If your roll-over is 9/10am change 00:10 to 10:10 to run the script every dat at 10:10am rather than 10 minutes pas midnight
*Press return
*Type AT and return and you should now see your job listed in the scheduler. Your Job will run every day at the specified time.
*Close the command window by typing <tt>exit</tt> or closing the window
<br> There is no notification if the task runs or fails. You need to check the System Event Viewer in the Admin section of the Control Panel for errors.
<br>


== Running manually  ==
== Running manually  ==
Line 91: Line 67:
== Possible Issues  ==
== Possible Issues  ==


The FTP tool being used here is the one which ships with Windows; it is a relatively simply implementation and may not support the requirements of your webserver. There is some useful reading in [http://sandaysoft.com/forum/viewtopic.php?f=18&t=4821 this] forum topic which may help if you have issues.  
The FTP tool being used here is the one which ships with Windows; it is a relatively simply implementation and may not support the requirements of your webserver. There is some useful reading in [https://cumulus.hosiene.co.uk/viewtopic.php?f=18&t=4821 this] forum topic which may help if you have issues.  


[[Category:WebTools]]
[[Category:WebTools]]

Navigation menu