Hostname: Difference between revisions

321 bytes added ,  13 years ago
Adding MUMPS example
m (Missing space)
(Adding MUMPS example)
Line 200:
IO.Put(OSConfig.HostName() & "\n");
END Hostname.</lang>
 
=={{header|MUMPS}}==
<lang MUMPS>
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|Objective-C}}==