Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RxExecPgm problem

Status
Not open for further replies.

HPfeffer

Programmer
Jul 1, 2002
3
DE
Hello,

i'm trying to start a program via RXU.DLL (Version 1a).
Here's my Code-Example:

**********************************************************
/* */
call rxfuncadd 'rxuinit','rxu','rxuinit'
call rxuinit

exrc = rxexecpgm('C:\MPTN\BIN\PING.EXE','S','00'x||'172.19.2.130'||'0000'x)
say exrc
**********************************************************
The Output is:
: unknown Host C:\MPTN\BIN\PING.EXE
0 0 1

Normally ping should answer in an error Case with:
ping: unknown Host C:\MPTN\BIN\PING.EXE

Something similarly happens, when I call epm.exe with 'c:\config.sys': Epm.exe is loading the epm.exe File to edit it...
I'm using OS/2 Warp 4 and RXU.dll V 1.a

What's wrong with my Code ?
 
Try ADDRESS and see what the command environment is.

bobh
 
Also why not try passing it directly as:
'PING' '00'x||'172.19.2.130'||'0000'x
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top