Hi All,
I have written some software that performs ETL processing to load data
warehouses. Each program accepts a set of parameters and returns 0 or
1 to the win/unix shell to indicate success or failure. Currently it
is run as a set of commands that calls each program and then returns
the return code and stops if the program has failed.
I'm interested in enhancing the product by being able to call these
programs from within another C++ program. This way I could create a
table of programs to run and parameters to use and then the calling
program could simply read the table, call each program in turn, and
stop if there was an error. I could then add a GUI to set up the table
of programs to run with parameters to pass.
The entry point to each program is the normal main argv argc and the
parameters are just a character string....the current version runs on
win2k/unix.
If anyone has a snippet of sample code to show me how to do this I
would very much appreciate it.
Best Regards
Peter Nolan.