If you don't want to use STRPCCMD, then you can use the Retrieve Device
Description Information (QDCRDEVD) api.  Get the ip address of the 5250
session and then use RUNRMTCMD.
RUNRMTCMD is even better than STRPCCMD.  There's a much smaller limit on 
the commands you can run, it doesn't require an open emulation session, 
and it's more of a standard.
However, the need to run an incoming remote command service makes it much 
more complicated to set up.  Plus, you either have to leave it wide-open 
for anyone to run any command on your computer, or you have to somehow 
provide a userid/password when you run RUNRMTCMD, making the programming 
on the iSeries side much more complicated too.
STRPCCMD doesn't require iSeries Access, many emulation programs support 
it. Granted, there are still some that dont, and that might be a 
deterrent (it was for me for a long time, particularly since nothing 
supported it on FreeBSD until I wrote my own) but it's certainly much 
easier.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact copyright@midrange.com.

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.