## Difference between RMTCMD and REXEC

280 pts.
Tags:
AS/400 commands
iSeries Navigator
What are the major difference between RMTCMD and REXEC? I installed iSeries navigator in my PC and I am able to access both these commands.

Thanks. We'll let you know when a new response is added.

Make sure your profile has sufficient authority to work with these commands. By default, these commands have capabilities that cause headaches for system managers/supervisors because it does not follow/use the authorities set.

The RMTCMD command is a DOS command that is installed on your PC with iSeries Access. It used to be an SNA-only command but now it runs over TCP/IP as well and now goes through the Remote Command host server.

STRHOSTSRV SERVER(*RMTCMD)

If you start the *RMTCMD server on the iSeries, you can use the RMTCMD command from Windows to run a command or a series of commands on the iSeries.

REXEC is a TCP/IP remote command execution protocol.

If you want the AS/400 to be a server, you must start the *REXEC TCP/IP server.
From Operations Navigator – select START option (right click) on the command or run the command STRTCPSVR *REXEC from a command line.

Once that server is started, on the remote machine (pc or any server) type

REXEC [as400name] -l [userid] [as/400 command] – please note the 400 commands must be non-interactive.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.950823187828064, "perplexity": 9041.82752851932}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-50/segments/1480698541517.94/warc/CC-MAIN-20161202170901-00250-ip-10-31-129-80.ec2.internal.warc.gz"}