Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to write cgi/perl web application.

    Hi,
    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

  • #2
    Banned
    Join Date
    Jun 2007
    Location
    Web Designer
    Posts
    321
    Thanks
    0
    Thanked 6 Times in 6 Posts
    Yes first post the code whatever you have got and tell exact places where you are struck.

  • #3
    Banned
    Join Date
    Jul 2009
    Posts
    52
    Thanks
    10
    Thanked 4 Times in 4 Posts
    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...

    eg
    Code:
    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);
    
    
    
    
    END_SCRIPT
    
    echo "added following values..."
    echo "personal: $poiss";
    echo "business: $bizz";
    echo "total: $total";


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •