Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Never C++'d, need to avoid perl for daemon

Status
Not open for further replies.

thedaver

IS-IT--Management
Joined
Jul 12, 2001
Messages
2,741
Location
US
I'm not a C++ programmer, but it appears I need to become one to solve this issue:
I have a script that is running at all times on a linux box. It's a perl script that monitors a mysql table as a job queue (jobs requests are submitted by other boxen). Once the queue request is posted in the table, the script pulls the record, does some sanity checking from both another mysql table and from some regex'ing, and then decides if the linux command requested is allowed.
If allowed, the script (in Perl) calls system() with the command and parms.

How big a rathole am I going to fall into to try and port this to c++ as my first ever c prog??? I'm trying to avoid the relatively large overhead of the perl parser staying in memory. I'd also like to leave this new C++ version in the hands of daemontools to ensure that it stays in operation.

Sorry if this is a bad question for this forum, but I need some wisened advice on whether to proceed and how.
Thanks,
D.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top