View Full Version : how to write cgi/perl web application.

06-23-2009, 06:04 AM
Can any one help me how to write perl/cgi web application which records and displays failed login attempts via secure shell.records about these failed logins,recorded in log file are to be entered in the my sql database.
Its very urgent please can any one help me

it career
06-23-2009, 10:36 AM
Yes first post the code whatever you have got and tell exact places where you are struck.

07-16-2009, 02:21 PM
It'd be much easier to just run shell scripts

regularly cat the secure log, or alternatively grep what you want from it

shell can easily execute mysql commands...


mysql -A <<END_SCRIPT
use atablecalledfred;
delete from personaltally;
delete from businesstally;
insert into personaltally values ($poiss);
insert into businesstally values ($bizz);
insert into overalltally values ($total);


echo "added following values..."
echo "personal: $poiss";
echo "business: $bizz";
echo "total: $total";