SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
changing variables

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
changing variables
Author Message
John Leonhirth



Joined: 13 Jan 2006
Posts: 2

Post changing variables Reply with quote

I have scripts that I run for 25 clients that import
data via custom program, move files around, etc.

Rather than have 25 separate JAL scripts, I'd like to have
one MAIN script that I can pass the clientID variable to.

But in 24x7, I'd like to have 25 different schedule scripts
that can be scheduled independently. This way an operator can
run as needed or disable a specific client without affecting others.

The 25 scripts would simply reference the MAIN script but pass
the clientid variable to.

When I need to make global changes I can just edit the MAIN script.

I'd like to keep it in 24x7 and not use DOS variables, batch files, etc.

ideas? If I put my MAIN script in the script library, can I reference it
from the other scripts and set the variable there?

john


Fri Jan 13, 2006 10:09 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: changing variables Reply with quote

Exactly, that is what you need to do. Put your script into the Script Libary and have it take the reired parameters make accept the required parameters, perhaps clientID and the base directory where you keep client files.

In the job script you will then code something like

MainScript( 1, "g:\\root\\client_1" )

: I have scripts that I run for 25 clients that import
: data via custom program, move files around, etc.

: Rather than have 25 separate JAL scripts, I'd like to have
: one MAIN script that I can pass the clientID variable to.

: But in 24x7, I'd like to have 25 different schedule scripts
: that can be scheduled independently. This way an operator can
: run as needed or disable a specific client without affecting others.

: The 25 scripts would simply reference the MAIN script but pass
: the clientid variable to.

: When I need to make global changes I can just edit the MAIN script.

: I'd like to keep it in 24x7 and not use DOS variables, batch files, etc.

: ideas? If I put my MAIN script in the script library, can I reference it
: from the other scripts and set the variable there?

: john

Fri Jan 13, 2006 10:31 am 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.