SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Indirect script calls.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Indirect script calls.
Author Message
jack



Joined: 06 Jun 2001
Posts: 4

Post Indirect script calls. Reply with quote

I want to store JAL script names in an .INI file, use INIFILEGETKEY to retrieve them, and call them based on their variable name. Is there any way to do this? If not, do you have any other suggestions? Thanks.

Tue Jun 12, 2001 11:15 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Indirect script calls. Reply with quote

Sure, you can do it, here is the sample code

IniFileGetKey "c:\\scripts\\file.ini", "Script", "key", file_name
FileCopy file_name, "c:\\temp\\temp_script.jal"

@SCRIPT:"c:\\temp\\temp_script.jal"

However, keep in mind that you loose many advantages of the integrated job database, including, build-in security, encryption, and automatic script deployment when running jobs on other computers. You also have to backup many files rather than a single job database file and in case if you need to reinstall it you have to know and remember all the files and locations and their dependencies, which does not improve/simplify the overall system maintenance.

: I want to store JAL script names in an .INI file, use INIFILEGETKEY to
: retrieve them, and call them based on their variable name. Is there any
: way to do this? If not, do you have any other suggestions? Thanks.

Tue Jun 12, 2001 11:55 am View user's profile Send private message
jack



Joined: 06 Jun 2001
Posts: 4

Post Re: Indirect script calls. Reply with quote

Do you have any other suggestions on how I could accomplish this? In this particular case, I would prefer not to hard code the script call. Thanks.

: Sure, you can do it, here is the sample code

: IniFileGetKey "c:\\scripts\\file.ini", "Script",
: "key", file_name
: FileCopy file_name, "c:\\temp\\temp_script.jal"

: @SCRIPT:"c:\\temp\\temp_script.jal"

: However, keep in mind that you loose many advantages of the integrated job
: database, including, build-in security, encryption, and automatic script
: deployment when running jobs on other computers. You also have to backup
: many files rather than a single job database file and in case if you need
: to reinstall it you have to know and remember all the files and locations
: and their dependencies, which does not improve/simplify the overall system
: maintenance.

Tue Jun 12, 2001 12:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Indirect script calls. Reply with quote

But the script call is not hardcoded. The point is that this file is a temporary file which is overwritten every time your job runs. Consider it as a work file.

: Do you have any other suggestions on how I could accomplish this? In this
: particular case, I would prefer not to hard code the script call. Thanks.

Tue Jun 12, 2001 2:43 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.