1. Re: Does Linux have a ShellExecute ?
- Posted by Al Getz <Xaxo at aol.com> Jul 01, 2004
- 403 views
Thanks irv, i'll have to try that out. Sounds like the sync is controllable by how you call it--nice! irv mullins wrote: > > Al Getz wrote: > > > > Irv, > > > > I often find i have to call other programs from my main > > program that's why i wanted shellexecute. I've also used > > it for other things, but that's the main use. > > For that, system() works fine. > If you want the called program to start and return immediately > to the main pgm, you call the other program(s) with an '&', as > in system("exu foo &",0) > > That starts "foo" running in the background. If foo is a > graphics pgm, its window will pop up. > > Without the '&', your main program will wait until the > called pgm is finished. > > However, if the called program prints text to the screen, then > there's a problem: when a Eu program quits, it displays "Press Enter" > and waits. This stops further processing by the main program. > I don't know why this is necessary, but that's what Eu does. > > You can also use shell commands such as wait, I've never needed > to use those. > > Irv > Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"