A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
13
Task/Hostname/J/hostname.j
Normal file
13
Task/Hostname/J/hostname.j
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
NB. Load the socket libraries
|
||||
|
||||
load 'socket'
|
||||
coinsert 'jsocket'
|
||||
|
||||
NB. fetch and implicitly display the hostname
|
||||
|
||||
> {: sdgethostname ''
|
||||
|
||||
NB. If fetching the hostname is the only reason for loading the socket libraries,
|
||||
NB. and the hostname is fetched only once, then use a 'one-liner' to accomplish it:
|
||||
|
||||
> {: sdgethostname coinsert 'jsocket' [ load 'socket'
|
||||
Loading…
Add table
Add a link
Reference in a new issue