Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Jun 17 '11 at 20:05

This question came from our site for computer enthusiasts and power users.

Can you provide more details? You want to execute a command on the i or on a PC? What would be executing this command? – Mike Wills Jun 17 '11 at 18:34
updated. Linked something I found that uses FTP. Haven't had a chance to try it out, but still would like to know other options. – WernerCD Jun 17 '11 at 18:52
You may get a more knowledgeable audience on Serverfault. – music2myear Jun 17 '11 at 18:53
What @music2myear said. An AS400 may be a little out of scope for Super User's standard audience, I'm afraid. – Shinrai Jun 17 '11 at 19:39
up vote 2 down vote accepted

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.

share|improve this answer
FTP is easy... now I just gotta merge this with my next question about Exchange Email Account monitoring & Scripting. Thanks. – WernerCD Jun 21 '11 at 14:16

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.