I am heavily modifying (re-writing) some Perl scripts that are bundled
within the dialup_admin web interface for FreeRADIUS.

Eventually I'd like to bring the execution of a few system commands
(executing mysql binary and importing an SQL file into it) into Perl,
however, for now I just need it to work.

Essentially I don't have the time to rewrite that entire portion right
now, so I'd like to know the best way to execute the SQL system commands
and be 100% sure that it ran properly, and if not, I would be notified.

At this point, the command is done via backticks.

What I'd like to know is what would be the best way to quickly hack this
so that if it fails and neglects to insert every row, I could have the
app tell me (via email or whatever) so I don't have to do a manual check
every morning.

AFAICT, I've got the backtick option, system or eval.

Will system or eval be able to see that each row is inserted without
error when the mysql binary is called at system level? Or would it be
best if I just took the time now and did it with DBI immediately instead?

(This is only one instance where I'm dealing with this problem).

Steve


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to