The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Mon Oct 23, 2017 7:59 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jan 24, 2006 2:24 pm 
Offline
Member

Joined: Mon Jan 23, 2006 9:33 am
Posts: 13
Location: N.Cyprus
Hi again!
As a very new boy to using scripting in Digital Atmosphere, my next "problem" is that, when Digital Atmosphere starts up, the Scheduler is always OFF, even though it was ON when I last closed the program down. Is there any way of setting this to always be ON, or is there a command line word I can use when starting the program?
I can see that it is possible to run a script when starting it up but I cannot see how to turn the Scheduler on from within a script.
The other, (maybe connected?), thing I do not understand is the TIMERON script command. What exactly does it do?? The manual says "TIMERON enables the script timer. It will adhere to the current timer script schedule" Could some kind person explain that one to me, please??
many thanks for the help
Nigel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 6:06 pm 
Offline
Member

Joined: Tue Jul 27, 2004 9:39 am
Posts: 38
TIMERON is the command to start the scheduler. So run a script containing this from the command line to leave DAWS with the scheduler running.

I used to do this, but there was something odd happening (probably user error) that left DAWS using more and more memory the longer it was left to run. I started to do a shutdown/restart every night to cure that, but I now let Windows do the scheduling and just run up DAWS, plot the charts I want and then shut itself down. That works well and doesn't leave DAWS in memory all the time.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 7:13 am 
Offline
Member

Joined: Mon Jan 23, 2006 9:33 am
Posts: 13
Location: N.Cyprus
Hi Chris,
many thanks for that explanation - sounds like a good plan.
Sorry about the delay in replying but we have been having quite long power cuts and loss of internet connection!
I haven't yet used Windows for running shceduled events but have heard about it. I can see how to RUN a program, using it, but how do you tell it to shutdown when the jobs are done?
Would you mind sending me some more detail?
Greatly appreciate the help
Nigel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 9:11 pm 
Offline
Member

Joined: Tue Jul 27, 2004 9:39 am
Posts: 38
Hi Nigel

I'm running XP Pro, so I'm not sure if XP Home or earlier versions of Windows have the scheduler built in. Look for Scheduled Tasks in Control Panel. If it's there, you can set a task up something like...

RUN: C:\PROGRA~1\DIGITA~1\digatmos.exe C:\Progra~1\Digita~1\myscript.dsf

START IN: C:\PROGRA~1\DIGITA~1

RUN AS: NT AUTHORITY\SYSTEM

The scheduler seems to like paths and files without spaces, so that's it looks a bit weird. This assumes that your DAWS is installed in C:\Program Files\DigitalAtmosphereWS.

Choose the schedule of every 'x' hour or whatever you want

To shut DAWS down when a script is finished use the QUIT command.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 28, 2006 9:51 am 
Offline
Member

Joined: Mon Jan 23, 2006 9:33 am
Posts: 13
Location: N.Cyprus
Hi Chris,
many thanks for the help. Have tried it out and it works just fine.
I had forgotten about putting the QUIT command at the end of the script!!
regards
Nigel


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group