C++ and Perl

Started by
1 comment, last by Twisol 17 years, 6 months ago
Is it possible to run another program from within a C++ program? What about a Perl program? Can a Perl program run a C++ program? On cronjobs: Can C++ be used instead of Perl for web server cronjobs?
Advertisement
Running a program from C:
system("otherprogram.exe");

Running PERL in C:
system("perl someprogram.pl");

Embedding PERL in C:
http://www.perl.com/doc/manual/html/pod/perlembed.html

Running C from PERL:
system("cprogram.exe");

As far as cron, it doesn't care what you want it to do, or why. Just when.
We''re sorry, but you don''t have the clearance to read this post. Please exit your browser at this time. (Code 23)
Thanks a ton. I guess system() just sends the passed string as a command? I'm curious as to how "pause" fits in then, but that's off topic. Rate++!

EDIT: Cool, I can read that same page you linked from the console by using the command "perldoc perlembed". [grin[

This topic is closed to new replies.

Advertisement