System Command
This function is used to launch system commands on the application server for the folder (by default). But it is also possible to launch system commands on no matter which machine where another application server (adxd and sadsys process) is operating. The syntaxes are the following:
- server@ordre_sys (the network name for the server where the folder is located should be given: An adxd service must work on the current service number to allow the connection).
- serveur:service@ordre (same principle as above, but the service number can be different. For example, this gives the syntax server_01:1802@lsadx -a DOSSIER TRT src).
Warning: the last two syntaxes assume that there exists on the remote server a folder having the same name as the folder from where the function is run (even if it is not in this folder that the operation will be launched). This condition is always filled when starting from the X3 folder, because for all X3 installations it is expected that as a minimum the X3 folder is installed. Therefore it is advised that this syntax is used only in this case. In addition, according to the network configurations, entering an incorrect network name can trigger a long wait time after entry of the field (since the check on the existence of a server is made on the network, there can be delay in the order of one minute, sometimes several minutes before an error message is received).
The launch of the system command on the client is made by giving # as the server name.
Web limits
In Web mode, it should be noted that the direct execution of a system command on a client workstation (syntax #@command) is impossible for security reasons.
Screen management
The entry is made in a dialogue box where a single system command is entered.
Entry screen
The system command is entered in the form of command (in this case the system command is launched on the current application server), or server@command. If the server is #, the command is launched on the client workstation (the command must be put in double quotes if there are spaces in the interior of the names). If the command is launched on the customer, the command is executed locally, then the dialogue reappears. If not the command is executed on the server, a log is displayed to give the result.
In this way, for example:
- if the following command is executed: #@"C:\Program Files\Microsoft Office\Office\Excel.exe" (supposing that the installation directory is the one shown), Excel™ is launched on the client workstation.
- if the following command is executed: ls -l /etc (assuming that the server is a UNIX™ server), displayed in a log file is the corresponding directory list.
field ORDSYS |
To enter the order system (UNIX or Back) which will be carried out on the host. |