Hostname: Difference between revisions

m
Line 16:
<!-- {{may not works with|ALGOL 68|Standard - extensions to libraries used}} -->
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}}
 
<!-- {{does not works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386 - No such library function.}} -->
{{works with|POSIX|.1}}
Line 21 ⟶ 22:
get(read OF execve child pipe("/bin/hostname","hostname",""), hostname);
print(("hostname: ", hostname, new line))</lang>
 
=={{header|AWK}}==
$ awk 'BEGIN{print ENVIRON["HOST"]}'