SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Add job from commandline questions

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Add job from commandline questions
Author Message
songmuh



Joined: 29 Feb 2008
Posts: 2
Country: United States

Post Add job from commandline questions Reply with quote
What is the correct syntax of JDL file that includes a JAL script?
When I try to add a job, I got the following error. My test script was entirely from the example of online help. What went wrong?

24x7 Scheduler
Processing command file test200.jdl
DDE service started on channel 2492408
Error: 4 - DDE request denied, invalid property name or job cannot be found
DDE service terminated
Fri Feb 29, 2008 2:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
Hi,

To which example do you refer? The one available in the on-line help has no references to JAL scripts. This example demonstrates how to create a command line job for running Notepad.

Please note that JDL files can only be used to create new jobs or modify existing jobs and set simple properties containing numeric, date/time, or one-line text values only. They cannot be used to set multi-line text values like scripts.

Lastly, if you need to create script-type jobs dynamically, use either JAL command JobModify, or programmatic DDE interface of use COM or Java APIs. Last 2 options offer most power and flexibility but may require a separate license for the client application calling the API, regardless of whether the application is local to the scheduler or calls the API remotely.
Fri Feb 29, 2008 3:21 pm View user's profile Send private message
songmuh



Joined: 29 Feb 2008
Posts: 2
Country: United States

Post Re. Add job from commandline questions Reply with quote
Thanks for your reply! Looks like it is possible to add a new job using the @script:jal_filename syntax for pointing to a script file.

The JDL is like the following:

ADD
SCRIPT=@SCRIPT:filename.jal
<other>
SAVE
Fri Feb 29, 2008 9:34 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
Yes, this way you can make a job to refer to off-line JAL file. If the referenced file is not used for remote jobs and doesn't contain any user and password names it should be ok.
Fri Feb 29, 2008 11:37 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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 vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.