September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1 @@
PRINT "Hostname: ", HOSTNAME$

View file

@ -0,0 +1,15 @@
identification division.
program-id. hostname.
data division.
working-storage section.
01 hostname pic x(256).
01 nullpos pic 999 value 1.
procedure division.
call "gethostname" using hostname by value length of hostname
string hostname delimited by low-value into hostname
with pointer nullpos
display "Host: " hostname(1 : nullpos - 1)
goback.
end program hostname.

View file

@ -0,0 +1 @@
hostname

View file

@ -0,0 +1 @@
uname -n

View file

@ -0,0 +1,5 @@
Public Sub Main()
Print System.Host
End

View file

@ -0,0 +1,7 @@
// version 1.1.4
import java.net.InetAddress
fun main(args: Array<String>) {
println(InetAddress.getLocalHost().hostName)
}

View file

@ -0,0 +1 @@
echo -ag $host

View file

@ -0,0 +1 @@
say .oleObject~new('WScript.Network')~computerName

View file

@ -0,0 +1 @@
say value('COMPUTERNAME',,'environment')

View file

@ -0,0 +1 @@
address command 'hostname -f'

View file

@ -0,0 +1 @@
address command "echo $HOSTNAME"

View file

@ -0,0 +1,7 @@
/* Rexx */
address command "echo $HOSTNAME | rxqueue"
address command "hostname -f | rxqueue"
loop q_ = 1 while queued() > 0
parse pull hn
say q_~right(2)':' hn
end q_

View file

@ -0,0 +1,8 @@
/* Rexx */
qq = .rexxqueue~new()
address command "echo $HOSTNAME | rxqueue"
address command "hostname -f | rxqueue"
loop q_ = 1 while qq~queued() > 0
hn = qq~pull()
say q_~right(2)':' hn
end q_

View file

@ -0,0 +1 @@
select host_name from v$instance;

View file

@ -0,0 +1 @@
System.hostname

View file

@ -0,0 +1 @@
Network.TCPServerSocket.open(8080).hostname