CompuServe Messages

#ARexx Shell Myster

    21-Nov-92 08:34:09
Fm: Bill Hawes 72230,267
To: Hayward Ignatovich 71550,14
The problem with your script is that the waitforport command must be run as a DOS command, not issued to the default host address. In the case that the script is run from WShell, waitforport gets run by the parent shell and all works well. But when run from an AmigaShell, the waitforport command gets sent to ARexx, and nothing happens since it isn't an ARexx command. Since no wait occurs, the EdPlayer host doesn't have time to come up, and the address EdPlayer instruction then fails. I'd recommend that you simply test whether a WShell is running the script and then issue an address command if it isn't. Try for example if left(address(),4) ~== 'WSH_' then address command at the beginning of your script. Then the default host will be either a WSHell or address command, and you can issue the DOS commands directly without an address instruction. Hope this clears up the confusion … Bill Hawes