RMTCMD - (Run) Remote Command
RTVDSP - Retrieve Display
These commands require V4R2 or later and that object observability is intact.
RMTCMD lets you run a command inside another job. You can sign it off, copy files from QTEMP,
etc. The only restriction is that the job must not already be interrupted by a break message.
If it has, the command will not be executed.
This command puts a workstation message queue into break mode with a special break handling program.
When that program receives a predefined string it executes the rest of the message as a command using
QCMDEXC.
RTVDSP lets you receive a display from another interactive job. Use F3 to exit or F5 to refresh.
The same restriction as for RMTCMD applies here; the job must not already be interrupted by a
break message. If it has, the RTVDSP command will hang, and you will have to use SYSREQ 2 to cancel.
These commands will not run under security level 40 or greater, unless
you patch MRUNRMTCMD to "System state".
Curious how it's done? Take a look at the source of MRUNRMTCMD
and discover a dirty trick!
These commands are Freeware
Download (47 KB) Remote Command/Retrieve Display.
Download for V6R1 (106 KB)
Download user state mrunrmtcmd for V6R1 and later (22 KB)
To install:
-
create an empty save file on your AS/400
-
start an ftp session and log on to you AS/400
-
set binary transfer mode with the bin ftp command
- Unzip rmtcmd.zip using WinZip
-
put rmtcmd.savf to the save file you just created
-
restore all objects from the save file to library UTLSYS. No other library name will work here, sorry.
16th March 2014
|