Menu

#7 Autocommit

open
nobody
None
5
2006-09-26
2006-09-26
No

Hey,
I would like to see a "autocommit session" or a
"autocommit after n minutes" option. Maybe simply
settable in ispman.conf or as extra variable.

rgds::derjohn

Discussion

  • Andreas John

    Andreas John - 2006-09-28

    Logged In: YES
    user_id=942411

    As Atif pointed out on the ML, a cronjob with some regex
    magic should do the job.

    Here is the magic I did:

    foobox:~# for i in $(ispman.listSessions | grep -v "0 new" |
    egrep -o "^[^:]*"); do ispman.commitSession $i; done

    Maybe you will have to adapt the pathes etc.

     
  • Andreas John

    Andreas John - 2006-09-28
     

Log in to post a comment.