Hostname: Difference between revisions

Lingo added
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.)
(Lingo added)
Line 426:
 
Sys->ATOMICIO is usually 8 kilobytes; this version truncates if you have a ridiculously long hostname.
 
=={{header|Lingo}}==
{{libheader|Shell Xtra}}
<lang lingo>
sx = xtra("Shell").new()
if the platform contains "win" then
hostname = sx.shell_cmd("hostname", ["eol":RETURN]).line[1] -- win 7 or later
else
hostname = sx.shell_cmd("hostname", RETURN).line[1]
end if</lang>
 
=={{header|LiveCode}}==
Anonymous user