 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
lsanthan
Joined: 01 Apr 2015 Posts: 2 Country: India |
|
global variables |
|
Hi
We run our jobs from scheduler using shell scripts rsh <<hostname>> shell_script.
We have one shell scripts to run a single job and we have several jobs in a job group. we would like to pass a parameter value from one job to another . Is there any option to set a global parameter in a job group.How do we read this value in our shell script. Please advise
|
|
Wed Apr 01, 2015 5:51 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
From which scheduler?
|
|
Wed Apr 01, 2015 9:29 am |
|
 |
lsanthan
Joined: 01 Apr 2015 Posts: 2 Country: India |
|
|
|
we are using 24X7 scheduler. can we have any global variables in 24X7 scheduler. how do we pass parameters between multiple jobs
|
|
Wed Apr 01, 2015 10:42 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Ssript based JAL jobs support file cache based persistent global variables.
For all other job types you can use system environment variables. That is trivial. If for whatever reason, you don't want to use environment variables, you can read/write to persistent storage like files or database to have values retained between system restarts. For example, writing a value to a database table requires just one line of code in a JavaScript job, same goes for reading a value, and you can do there pretty much everything you can do with a shell script type job.
|
|
Thu Apr 02, 2015 10:05 am |
|
 |
|
|
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
|
|
|