1. Does Linux have a ShellExecute ?

Howdy,

Does anyone know if Linux has the equivalent of
the Windows ShellExecute, and if so, how is it called?
This is not the system() call or system_exec() call,
but i'd still like to be able to call if from Euphoria.

Also, anyone have any info about the syncronicity of
the Eu system() and system_exec() calls under Linux?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Does Linux have a ShellExecute ?

Al Getz wrote:
> 
> Howdy,
> 
> Does anyone know if Linux has the equivalent of
> the Windows ShellExecute, and if so, how is it called?
> This is not the system() call or system_exec() call,
> but i'd still like to be able to call if from Euphoria.

> Also, anyone have any info about the syncronicity of
> the Eu system() and system_exec() calls under Linux?

Give us an example of what you are trying to accomplish, 
please.

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: Does Linux have a ShellExecute ?

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.

Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

4. Re: Does Linux have a ShellExecute ?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu