in reply to Simple crontab alternative

Surely the logic is very simple?

"If the time is equal to or greater than LOGOUT_TIME, and ALREADY_DONE(TODAYS_DATE) is false, then DO_LOGOUT_SCRIPT and set ALREADY_DONE(TODAYS_DATE) to true."

How you set and store the time and where you save the value for "already done" are dependent on your system.



($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re^2: Simple crontab alternative
by lnl (Pilgrim) on Jul 17, 2005 at 14:00 UTC
    Thanks! That is a start.

    I was hoping to hear how others may have employed a semaphore file and dealt with possible reliability issues...
    like, what if the semaphore file somehow got deleted.

    --lnl