September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
1
Task/Hostname/BaCon/hostname.bacon
Normal file
1
Task/Hostname/BaCon/hostname.bacon
Normal file
|
|
@ -0,0 +1 @@
|
|||
PRINT "Hostname: ", HOSTNAME$
|
||||
15
Task/Hostname/COBOL/hostname.cobol
Normal file
15
Task/Hostname/COBOL/hostname.cobol
Normal 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.
|
||||
1
Task/Hostname/Friendly-interactive-shell/hostname-1.fish
Normal file
1
Task/Hostname/Friendly-interactive-shell/hostname-1.fish
Normal file
|
|
@ -0,0 +1 @@
|
|||
hostname
|
||||
1
Task/Hostname/Friendly-interactive-shell/hostname-2.fish
Normal file
1
Task/Hostname/Friendly-interactive-shell/hostname-2.fish
Normal file
|
|
@ -0,0 +1 @@
|
|||
uname -n
|
||||
5
Task/Hostname/Gambas/hostname.gambas
Normal file
5
Task/Hostname/Gambas/hostname.gambas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Public Sub Main()
|
||||
|
||||
Print System.Host
|
||||
|
||||
End
|
||||
7
Task/Hostname/Kotlin/hostname.kotlin
Normal file
7
Task/Hostname/Kotlin/hostname.kotlin
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// version 1.1.4
|
||||
|
||||
import java.net.InetAddress
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println(InetAddress.getLocalHost().hostName)
|
||||
}
|
||||
1
Task/Hostname/MIRC-Scripting-Language/hostname.mirc
Normal file
1
Task/Hostname/MIRC-Scripting-Language/hostname.mirc
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo -ag $host
|
||||
1
Task/Hostname/OoRexx/hostname-1.rexx
Normal file
1
Task/Hostname/OoRexx/hostname-1.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
say .oleObject~new('WScript.Network')~computerName
|
||||
1
Task/Hostname/OoRexx/hostname-2.rexx
Normal file
1
Task/Hostname/OoRexx/hostname-2.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
say value('COMPUTERNAME',,'environment')
|
||||
1
Task/Hostname/OoRexx/hostname-3.rexx
Normal file
1
Task/Hostname/OoRexx/hostname-3.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
address command 'hostname -f'
|
||||
1
Task/Hostname/OoRexx/hostname-4.rexx
Normal file
1
Task/Hostname/OoRexx/hostname-4.rexx
Normal file
|
|
@ -0,0 +1 @@
|
|||
address command "echo $HOSTNAME"
|
||||
7
Task/Hostname/OoRexx/hostname-5.rexx
Normal file
7
Task/Hostname/OoRexx/hostname-5.rexx
Normal 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_
|
||||
8
Task/Hostname/OoRexx/hostname-6.rexx
Normal file
8
Task/Hostname/OoRexx/hostname-6.rexx
Normal 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_
|
||||
1
Task/Hostname/SQL/hostname.sql
Normal file
1
Task/Hostname/SQL/hostname.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
select host_name from v$instance;
|
||||
1
Task/Hostname/Zkl/hostname-1.zkl
Normal file
1
Task/Hostname/Zkl/hostname-1.zkl
Normal file
|
|
@ -0,0 +1 @@
|
|||
System.hostname
|
||||
1
Task/Hostname/Zkl/hostname-2.zkl
Normal file
1
Task/Hostname/Zkl/hostname-2.zkl
Normal file
|
|
@ -0,0 +1 @@
|
|||
Network.TCPServerSocket.open(8080).hostname
|
||||
Loading…
Add table
Add a link
Reference in a new issue