Hi
I am trying to figure out how to do something for a program I am writing I am fairly new to C++ I have only been using it for about 3 months.
Basically I want to launch a pthread which is easy enough but from within that thread I want to launch a perl script, I don't want the perl embedded, something like:
exec("/usr/local/bin/perl", "sqldaemon.pl", "/var/log/error");
kind of thing, the "sqldaemon.pl" and "/var/log/error" sections being arguements to be passed to the script.
I have gone through my books but I can't find any reference on how to launch an external application, this application will also be running in a daemon mode and wont terminate until the main program exits, which is why it is launched from a thread instead of from the main program.
Any help on the correct syntax for launching external applications with arguements would be appreciated.
Thanks
Ben