• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Obtaining computername programmatically on Unix

New Here ,
Apr 21, 2006 Apr 21, 2006

Copy link to clipboard

Copied

I use this bit of code to scan the registry on Windows servers to determine the server name the code is executing on...this is very helpful for troubleshooting clustered systems.

Does anyone know how to go about this in Unix?
TOPICS
Advanced techniques

Views

161

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 22, 2006 Apr 22, 2006

Copy link to clipboard

Copied

One of the easiest ways, assuming CFFILE and CFEXECUTE are enabled on the server, is something like this:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2006 Apr 24, 2006

Copy link to clipboard

Copied

LATEST
That's it, thanks!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation