APLX Help : Help on APL language : System Functions & Variables : ⎕HOST Command to Host
|
|
|
|
|
The
If the right argument to For example, under Linux:
⎕HOST ''
LINUX
SERVER←⎕HOST 'hostname'
SERVER
penguin
10 ⎕HOST 'telnet rs6000'
Note that, under Windows, many common commands are 'built-in' to the command-line shell, rather than being separate executable programs. Under Windows NT, 2000, XP and Vista, you can run these using the 'CMD' program with the '/C' option. (Under Windows 95, 98 and ME, use 'COMMAND.COM /C'). For example:
⎕HOST 'CMD /C dir'
Volume in drive C has no label.
Volume Serial Number is 07D0-0B11
Directory of C:\aplx\ws
20/06/2001 19:13 [DIR] .
20/06/2001 19:13 [DIR] ..
05/09/2001 16:43 17,792 JIM.aws
05/09/2001 17:06 574 EXPLORE.atf
30/07/2001 19:49 17,828 QNA.aws
3 File(s) 39,313 bytes
2 Dir(s) 14,797,176,832 bytes free
Under MacOS 8 and 9, because there is no command-line interface at the operating system, Special considerations for Client-Server implementations of APLXIn Client-Server implementations of APLX, the front-end which implements the user-interface (the "Client") runs on one machine, and the APLX interpreter itself (the "Server") can run on a different machine. The two parts of the application communicate via a TCP/IP network. Typically, the Client will be the APLX front-end built as a 32-bit Windows application running on a desktop PC, and the Server will be a 64-bit APLX64 interpreter running on a 64-bit Linux or Windows server. In such systems, In this example, the Client is running under Windows, and the Server under Linux x86_64: ⎕HOST '↑cmd /c vol c:' ⍝ Execute on Windows Client machine
Volume in drive C has no label.
Volume Serial Number is 07D0-0B11
⎕HOST '↓uname -nsp' ⍝ Execute on Linux Server machine
Linux Server23 x86_64
|
|
APLX Help : Help on APL language : System Functions & Variables : ⎕HOST Command to Host
|
|
Copyright © 1996-2010 MicroAPL Ltd