Page 1 of 1
Executing A Program Within A Program
Posted: Mon Jun 21, 2004 11:00 pm
by deus_the_programmer
hi can someone supply me with some unix c code to execue a program called: menu
many thanks,
ed.
RE:Executing A Program Within A Program
Posted: Mon Jun 21, 2004 11:00 pm
by GT
execlp("menu", "menu", 0);
RE:Executing A Program Within A Program
Posted: Fri Jun 25, 2004 11:00 pm
by Gnome
One of the exec*() family of functions will do the trick together with a fork().
You can also check out the system() function, which is really a wrapped up (or "stripped down", depending on your disposition) version of the exec*()/fork() combination.
Gnome.