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.
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.