Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I wonder if there's a way to get the name of the machine the Job is running on.
I know that, using the command "System.getProperty("java.vm.name")" I get the information regarding the VM (i.e OpenJDK 64-Bit Server VM). But I'm interested in getting the name of the computer the Job is running in.
Is there a way to get it?
Thank you,
Rui
Hi,
I found out that this command does the trick:
System.getenv("COMPUTERNAME")
Thank you all,
Rui
Hi,
I found out that this command does the trick:
System.getenv("COMPUTERNAME")
Thank you all,
Rui