Re: Does Linux have a ShellExecute ?
- Posted by irv mullins <irvm at ellijay.com> Jun 30, 2004
- 538 views
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