On the AS400 I want to remotely execute:
strpgrprg topgr(userx) message(ALERT!)
What options are available to me?
update: I want to run a AS400 program from outside of the AS400. I want to execute this command (or similar) from a windows batch, or a linux shell script.
I've found some info on how-to via FTP. Just haven't tried it out and still looking to see if it's the best way to do it.
Unless you want to write a simple Java program using JT400, FTP is probably your best option.
If you want other options, post a message on MIDRANGE-L there are around 2,000 people on the list many whom have done this before.
IBM i has a rexec service that you could try using.
To start it, run 'STRTCPSVR SERVER(*REXEC)'
I've never used it myself, but it should work with any rexec client.
I believe you can use the
SBMRMTCMD
as well, the only drawbacks would beif the command can only be run in certain modes
you cannot prompt the command, as it is passed like a string.
You should do that off the
QCMD
command line, get the parms that you want, then copy and paste.