Menu

#1 Crontab Script

open
nobody
None
5
2004-10-26
2004-10-26
Anonymous
No

A crontab script would be nice.

Discussion

  • Mikey

    Mikey - 2005-01-15

    Logged In: YES
    user_id=1197606

    It's not that hard to make a small modification and make one
    yourself. This is my solution. Open the file "defender.pl"
    and right under "use Socket;" place the following code:

    $pidfile = "defender.pid";
    sub writepid {
    open(PIDFILE, ">$pidfile");
    print PIDFILE "$$";
    close(PIDFILE);
    };

    writepid();

    Once this code had been added, when you launch defender it
    will create a pid file called "defender.pid". Now that there
    is a pid file, it's simple to create a small chk script or
    even modify an existing one.

     
  • Nobody/Anonymous

    Logged In: NO

    So would be! :P

     

Log in to post a comment.

MongoDB Logo MongoDB