Hi guys,
I move Sequencer jobs from a Development ,to a Test, and to a Production environment constantly and sometimes forget to change the host name parameter.
I was wondering if there is a way to get the host name and project name dynamically in a Sequencer job?
Thanks.
Derive the host name and project name dynamically
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 33
- Joined: Tue Sep 02, 2014 7:43 am
Well... not really sure why you want project name dynamically since it is typically required BEFORE you actually execute a job (as it is a required parameter to kick that sequencer off to begon with). Unless you are using the built in job scheduler of course.
as for hostname... try opening an execute stage and using the hostname shell command. trap that output.
as for hostname... try opening an execute stage and using the hostname shell command. trap that output.
-
- Participant
- Posts: 32
- Joined: Fri Nov 07, 2014 11:18 am
If I understand correctly -
You have a sequencer and one of the parameter variable you use is for hostname. And you want to avoid typing in Hostname again and again.
If that is the case I would suggest using Parameter set Value files then. you can create 3 value files (one for each environment Dev / test / prod ) With each value file containing the hostname of that env.
So when you run you can chose from a drop down box.
You have a sequencer and one of the parameter variable you use is for hostname. And you want to avoid typing in Hostname again and again.
If that is the case I would suggest using Parameter set Value files then. you can create 3 value files (one for each environment Dev / test / prod ) With each value file containing the hostname of that env.
So when you run you can chose from a drop down box.
that's wierd ?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 33
- Joined: Tue Sep 02, 2014 7:43 am
Hi AshishDevassy,
I have also considered this, but I wanted to know if there were any other way to get the host name dynamically. Because the host name parameter is hard coded into every directory parameter, this would require me to change every job that uses a directory parameter.
Thanks for your input. I will look into it.
I have also considered this, but I wanted to know if there were any other way to get the host name dynamically. Because the host name parameter is hard coded into every directory parameter, this would require me to change every job that uses a directory parameter.
Thanks for your input. I will look into it.
What???Because the host name parameter is hard coded into every directory parameter, this would require me to change every job that uses a directory parameter.
Your directories have the hostnames in them???
IE: I'm executing my code on host mydevbox and you have a path coded as such:
/dev/mydevbox/data/something
?