Menu

can someone explain this one to me?

Help
fogofwar
2005-12-22
2013-04-16
  • fogofwar

    fogofwar - 2005-12-22

    Ok so I posted in the topic by zaterio that I also wasn't able to see anything on the web page, or that anything was going into mysql. I finally narrowed it down to the feed_db.pl file that wasn't working right, although it was running fine without errors. Finally, in an attempt to debug it (or at least see some output) i typed:

    perl feed_db.pl

    low and behold it started pulling the packets from the syslog and putting them into the database. Also instantly data showed up on the webpage. Why is this? Do I have to leave this running now? I'm confused as to why the .pl script doesn't just work on its own without being run through what I guess is an interpreter?

    Any insight is greatly appreciated.

    Lee

     
    • fogofwar

      fogofwar - 2005-12-22

      As a follow up. The only way I can keep iptablelogs working (specifically the feed_db.pl) is to open up a screen session, type 'perl feed_db.pl' and then detach from the screen session. It I've tried typing perl feed_db.pl --background (as what I gathered from the init.d script) but it won't work that way. I've also tried perl 'feed_db.pl &'. It just doesn't work in the background for some reason, any suggestions?

      Lee

       
    • Joshua Laase

      Joshua Laase - 2007-05-11

      Lee,

      Did you ever figure out why you could not run the perl script in the background?

      Thanks,

      Josh

       

Log in to post a comment.

MongoDB Logo MongoDB