[ ispman-WishList-1565623 ] Autocommit

"SourceForge.net" <[email protected]> Thu, 28 Sep 2006 03:48:56 -0700
Newsgroups gmane.comp.isp.ispman.devel
Message-ID <[email protected]>
WishList item #1565623, was opened at 2006-09-26 10:35
Message generated for change (Comment added) made by derjohn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=447192&aid=1565623&group_id=8390

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Andreas John (derjohn)
Assigned to: Nobody/Anonymous (nobody)
Summary: Autocommit

Initial Comment:
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




----------------------------------------------------------------------

>Comment By: Andreas John (derjohn)
Date: 2006-09-28 10:48

Message:
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=447192&aid=1565623&group_id=8390

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV