Hi
Is it possible to have the host name as a parameter in a piv file?
We have Oracle failsafe on a new server, our PRO-IV app is installed on both nodes, would like
to have one piv in a shared location so users will not have two pivs.
If there is another way of doing this, would appreciate any suggestions.
Thanks
Rory
host as parameter in piv
Started by Rory, Jun 22 2005 09:18 AM
6 replies to this topic
#3
Posted 22 June 2005 - 01:42 PM
Why not have two piv files, one for each server. And choose which piv file to use from an environment variable, if that is necessary.
*
Ok, not reading the whole story...
You could create the piv file "on the fly", after which server you wish to use at the time.
*
Ok, not reading the whole story...
You could create the piv file "on the fly", after which server you wish to use at the time.
Edited by Sindre Solem, 22 June 2005 - 01:44 PM.
#5
Posted 22 June 2005 - 01:51 PM
Rory,
Sorry, I actually answered Fred's question and not yours...
What you can do relatively easily is created a batch file that dynamically builds a PIV. If the hostname is fed in as %1, then the batch could build either PIV on the fly.
The hostname is in the PIV on the line starting with H.
hth,
Joseph
Sorry, I actually answered Fred's question and not yours...
What you can do relatively easily is created a batch file that dynamically builds a PIV. If the hostname is fed in as %1, then the batch could build either PIV on the fly.
The hostname is in the PIV on the line starting with H.
hth,
Joseph
#7
Posted 22 June 2005 - 05:45 PM
Although you don't actually need to do this in any reasonably recent version of ProIV to retrieve an environment variable, you can just write..SYSF(22,'HOSTNAME', $HOSTNAME)
&$@~HOSTNAME
At least that's one officially-unsupported SYSF call we don't all have to rely on
Edited by Richard Bassett, 22 June 2005 - 05:45 PM.
Nothing's as simple as you think
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users