Skip to main content

Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

Thanks for any ideas!

Kathleen



------------------------------
kathleen hambrick
Programmer
Rocket Forum Shared Account
------------------------------

Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

Thanks for any ideas!

Kathleen



------------------------------
kathleen hambrick
Programmer
Rocket Forum Shared Account
------------------------------

SYSTEM(9013) will return the HostName

Using PCPERFORM will allow to get things like uname and the server ip address easily enough.



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

SYSTEM(9013) will return the HostName

Using PCPERFORM will allow to get things like uname and the server ip address easily enough.



------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------

Thanks Jonathon - system(9013) is what I was looking for!

Kathleen



------------------------------
kathleen hambrick
Programmer
Rocket Forum Shared Account
------------------------------

Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

Thanks for any ideas!

Kathleen



------------------------------
kathleen hambrick
Programmer
Rocket Forum Shared Account
------------------------------

We just converted from AIX to Red Hat Linux so if you have any other questions feel free to reach out and I'll try to help also.



------------------------------
Harold Hambrick
Manager of UV Development
R.T.G. Furniture Corp and its Affiliates
Seffner FL US
------------------------------