
Anonymous
Not applicable
2011-05-12
09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Get Executing Machine Name
Does anyone have any suggestions on the best way to get the machine name that a job is executing on?
Thanks,
Neil
Thanks,
Neil
315 Views
4 Replies

Anonymous
Not applicable
2011-05-12
09:57 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Neil,
You can simply use a tSystem component. This component allows you to execute any system command. Just print the computer name with an echo, and use the parameters of the tSystem to catch what this command returns and output it into a column in the component.
You can simply use a tSystem component. This component allows you to execute any system command. Just print the computer name with an echo, and use the parameters of the tSystem to catch what this command returns and output it into a column in the component.
315 Views

Anonymous
Not applicable
2011-05-12
10:08 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In java you can use --> System.getenv("COMPUTERNAME")
315 Views

Creator
2011-05-12
10:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
java.net.InetAddress.getLocalhost().getHostName() or java.net.InetAddress.getLocalhost().getCononicalHostName() will also get you the host name for the machine running the job.
315 Views

Anonymous
Not applicable
2011-05-12
06:26 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks all. Working now.
Neil
Neil
315 Views
