 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
songmuh
Joined: 29 Feb 2008 Posts: 2 Country: United States |
|
Add job from commandline questions |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
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 |
|
 |
songmuh
Joined: 29 Feb 2008 Posts: 2 Country: United States |
|
Re. Add job from commandline questions |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
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 |
|
 |
|
|
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
|
|
|