Click to See Complete Forum and Search --> : running other programs from a c++ program


jpersons
11-05-2002, 12:42 AM
I want to make sure that the wget program gets run before a certain program that i'm writing gets run. I know i could just use a script to run wget and then my program but i was wondering if there was anyway to, within a c++ program, tell the shell to run another program (wget in my case).

cwolf
11-05-2002, 02:49 AM
#inlcude <stdlib.h>
.
.
system("ls -la");
.
.

jpersons
11-07-2002, 02:11 PM
Thank you much!