Hostname: Difference between revisions
Content added Content deleted
(new Emacs Lisp) |
(new Pari/GP) |
||
Line 519: | Line 519: | ||
=={{header|Oz}}== |
=={{header|Oz}}== |
||
<lang oz>{System.showInfo {OS.getHostByName 'localhost'}.name}</lang> |
<lang oz>{System.showInfo {OS.getHostByName 'localhost'}.name}</lang> |
||
=={{header|PARI/GP}}== |
|||
Running the <code>hostname</code> or <code>uname</code> program and capturing its output (the first line of output) in a string. |
|||
<lang parigp>str = externstr("hostname")[1]; |
|||
str = externstr("uname -n")[1];</lang> |
|||
=={{header|Pascal}}== |
=={{header|Pascal}}== |