Author |
Message |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
How do I run a script only on holidays? |
|
Hi,
I am evaluating the application, and I wonder if there is a way to only run a certain job on holidays only?
Actually it is not holidays, but just days when exchanges close earlier. I can find any other date lists though..
Thanks in advance!
|
|
Tue Sep 02, 2008 9:43 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Are you looking at the Multi-platform Edition? If yes, create a calendar containing those special dates, set the calendar type to inclusive, set the job to use that calendar and set the job schedule to "daily or weekly" schedule marking all days of week as start dates. It will actually run only on dates specified in the calendar. If you need more help with that please don't hesitate to ask.
|
|
Tue Sep 02, 2008 10:02 am |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
No, I don't...I installed the win version since the server was running windows.
Does the multi-platform edition have a larger feature set? I can't se anything about calendars(only holidays) in the version in front of me.
Actually I was just thinking that that was a little bit restricted.
|
|
Tue Sep 02, 2008 11:00 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Yes, the Multi-platform Edition has a large future set and it runs on Windows and many other types of systems. Advanced calendaring features are available in the Multi-platform Edition only.
|
|
Tue Sep 02, 2008 11:22 am |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
Hm. How exceedingly annoying that I spent the entire afternoon converting jobs for this version.
Can they be easily exported/imported into the multi-platform version?
|
|
Tue Sep 02, 2008 11:36 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Yes they can, if they are compatible. The incompatible types are JAL script based jobs, everything else should be ok. See "Tools / Import Jobs from Remote Scheduler" menu.
By the way, a primitive way to achieve the same effect ina Windows version is to create a text file with a list of dates you want the job to run on. Create a job of script type, use JAL for example; set it to run every day; make the job to lookup current date in the file and if not found, just exit and don't do anything. This job logic can be likely developed in 5 or less minutes if you are already familiar with JAL, it could take longer of course if you are just learning JAL.
|
|
Tue Sep 02, 2008 11:51 am |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
Ok, I tried to install the multiplatform version on the server. However, it does not seems to work for me.
I installed the JRE, I pointed the JAVA_HOME env to the right folder(both as a user and system variable).
First "program files\Java\jre1.6.0_07" which did not work. Master.bat simply exits. It even exits the command prompt it is run in.
I then installed another variant which ended up in program files\Java\jre6. Same thing.
Any ideas?
|
|
Tue Sep 02, 2008 12:30 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
Tue Sep 02, 2008 12:36 pm |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
That worked.
But I'm sorry, I tried to import using the database manager, and it says:
"Invalid job database file. Invalid format."
So i'm still stuck..
Help?
|
|
Tue Sep 02, 2008 1:13 pm |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
Ehum.. The source database file is the one used by the windows version. And it isn't corrupt according to that version.
|
|
Tue Sep 02, 2008 1:30 pm |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
Hi,
I finally solved it myself by setting up the windows version as an agent in the multiplatform version and successfully(i think) imported them.
Thanks for all your help, you got yourself a multiplatformed customer.
|
|
Tue Sep 02, 2008 2:46 pm |
|
 |
nb007
Joined: 02 Sep 2008 Posts: 23
|
|
|
|
Small issue, though.
But reoccurrances did not propagate.
|
|
Tue Sep 02, 2008 3:01 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Thanks for the status update. I'm glad you found out how to import jobs. Using agent mode is not a straight-forward way but that works too :)
|
|
Tue Sep 02, 2008 3:06 pm |
|
 |
|