[Tutor] Command Line Promps

Alan Gauld alan.gauld at btinternet.com
Mon Jun 4 01:35:30 CEST 2007


"Jason Coggins" <jason at asahnekec.com> wrote

>I am using Linux and yes I am wanting the program to run another 
>program.  I
> have tried these before but, if I remember correctly, these methods 
> caused
> the original program to "freeze" while waiting on the "spawned" 
> program to
> return a value (usually either true or false).  I am planning on 
> having the
> program start another program and then exit the original program 
> after the
> second program is started but before the second program ends.

Since you are on Linux you should look at os.fork()

The use of fork() is covered in my tutorial in the topic on
Inter-Process Communications under the heading Spawning Processes.

> I used the reply button to send a reply to the first message.  I did 
> not
> realize it would send the reply directly to you instead of the list. 
> I have
> tried to send this reply to the list.

Reply All is the tool to use. Reply replies only to the sender which
is set to the original sender.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list