Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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