home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: march@cs.uiuc.edu (Steve March)
-
- The best I've been able to do from the shell (ksh) is ..
-
- export HOSTNAME=$(hostname || uname -n)
-
- The first probably maps into the gethostname(2) and the second to uname(2).
- In my experience, uname(2) is more portable.
-
- Hope this is helpful.
-
- -Steve
-
- ===============================================================================
- Steve March (H) (217)328-5176/328-5230 (W) 333-7408
- Domain: march@cs.uiuc.edu Path: {uunet|convex|pur-ee}!uiucdcs!march
- "Time and space are modes by which we think and not conditions in which
- we live." - Albert Einstein
-
-
- Volume-Number: Volume 24, Number 70
-
-