The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
External program execution - suspend terminal |
Post Reply |
Author | |
joshgallant
Newbie Joined: September 15 2021 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: September 15 2021 at 9:17am |
When attempting to execute a client side application like calculator or notepad I can successfully make the program suspend and wait for the program to terminate using this example from the manual:
EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13) CMD = "notepad.exe" INPUT JUNK What I really want to do is launch a browser to open a URL with this same process but I can't seem to get the process to suspend and wait. It always returns right away. I've tried on multiple browsers and OS versions. Has anyone figured out a solution for this? - Josh
|
|
PSchellenbach
Admin Group Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
|
Hi Josh - The above technique usually works, but browsers are strange applications that don't always follow the normal rules. AccuTerm is able to monitor the status of an external program by checking the status of the process running the external program. Some browsers (maybe all of them?) start multiple processes to render tabs and (at least Firefox) close the original process after launching the URL from the command line. This causes AccuTerm to believe the browser was closed, and the next statement runs as if the user closed the app. You might experiment with different browsers and their command-line switches to see if you can find one that will run in a single process. Thanks, Pete |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |