Hostname: Difference between revisions
Content added Content deleted
(→{{header|friendly interactive shell}}: len = 2421 if true?) |
m (added Caché ObjectScript) |
||
Line 59: | Line 59: | ||
=={{header|C sharp|C#}}== |
=={{header|C sharp|C#}}== |
||
<lang csharp>System.Net.Dns.GetHostName();</lang> |
<lang csharp>System.Net.Dns.GetHostName();</lang> |
||
=={{header|Caché ObjectScript}}== |
|||
<lang cache>Write ##class(%SYS.System).GetNodeName()</lang> |
|||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
Line 260: | Line 263: | ||
=={{header|MUMPS}}== |
=={{header|MUMPS}}== |
||
<lang MUMPS> |
<lang MUMPS>Write $Piece($System,":")</lang> |
||
Write $System |
|||
</lang> |
|||
The output varies by implementation. The following is an example of Intersystem's Caché 5.2.0.329.0:<pre> |
|||
USER>Write $SYSTEM |
|||
STORMSTATION:CACHE520 |
|||
</pre> |
|||
The portion before the colon is the machine running Caché, and the portion after the colon is the instance. |
|||
=={{header|NetRexx}}== |
=={{header|NetRexx}}== |