Hi all!
I am sure I have done this before a few years back but can't for the life of me remember the syntax.
Is there a way I can get the current machine's name as a variable (to put into either a file path or font sop)?
Will be handy for a render node debug scene I am preparing.
I have memory of it being $MACHINE_NAME or $HOSTNAME, something along those lines but any variation on that theme I try comes up blank.
Thanks,
Rich.
Variable to return machine name
1992 4 2- Richard Costin
- Member
- 102 posts
- Joined: May 2006
- Offline
- protozoan
- Member
- 1714 posts
- Joined: March 2009
- Offline
Don't know if there's an internal mechanism for that, but you can always stick it into a custom environment variable inside your wrapper script (where you set $JOB etc).
Add something like:
(when using bash for example) and you can then refer to it inside the Houdini session regularly by $MEINHOST
Add something like:
export MEINHOST=$(hostname -s)
(when using bash for example) and you can then refer to it inside the Houdini session regularly by $MEINHOST
Martin Winkler
money man at Alarmstart Germany
money man at Alarmstart Germany
- tamte
- Member
- 8804 posts
- Joined: July 2007
- Offline
- Richard Costin
- Member
- 102 posts
- Joined: May 2006
- Offline
- jwverde
- Member
- 5 posts
- Joined: March 2024
- Offline
-
- Quick Links