i can run rexx.exe c:\room\test.rex or rexxhide.exe c:\room\test.rex. is it possible to determine in code (test.rex) what engine i run?
ERROR! The markdown supplied could not be parsed correctly.
Did you forget to surround a code snippet with "~~~~"?
I'm pretty sure it is not possible to determine in test.rex what executable
started the interpreter. What do you need to do at run-time? Maybe there
is some other way to do what you want.
On Sun, Apr 13, 2014 at 8:45 AM, Igor <email@example.com> wrote:
> i can run rexx.exe c:\room\test.rex or rexxhide.exe c:\room\test.rex. is
> it possible to determine in code (test.rex) what engine i run?
> [rexx or rexhide](
> Sent from sourceforge.net because you indicated interest in <
> To unsubscribe from further messages, please visit <
sometime i need run rexx script only via hide engine or console, despite of extension(.rexh) or manual run etc. pseudo code
if engine='rexxhide' then do
'start rexx.exe' .context~name
Yes, you can do this. Either call an external utility, eg SysInternals' pslist and pass to it the processid under which you are running - from SysQueryProcess("PID"), ie issue
(and eg redirect the output to a file then read the file),
or use WMI (which is an interface to a sort of database of facts abouts what's running under windows at any one time) to see all sort of info about your process (or other processes) active at the time. For example I've an exec that lists rexx-related processes, and optionally what their threads are doing.
I attached it to another reply further down this discussion.
(ignore this reply)
Hang on, maybe I can attach it...
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.