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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running another program in another process

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I would like to make a REXX script doing a "Beep !" when an error occurs. But BEEP function blocks my program (a duration of 5 seconds makes my script sleeping for 5 seconds). That's why I would like to put the BEEP call in another dedicated script, which doesn't return anything special, of course. My goal is now to launch this script in another -asynchronized- process, in order not to wait its end.

Is this possible ?

Thank's,

Philippe
 
All done, problem is solved.

I'm using ObjectREXX, wich allow multi-threading (or multi-processing, I dont know, but I think that threads ars used). So the program is :

/* Main program */
SAY "Start..."
bp = .BeepClass~new
bp~beep
SAY "And just a millisecond later, here we are"
EXIT


::CLASS BeepClass

::METHOD beep
/* "Create another thread and run what follows inside it" */
REPLY
BEEP(500, 5000)
RETURN


Thank's to myself ;-)

Philippe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top