From: John H. <j....@pl...> - 2003-09-09 14:04:48
|
Hello, Is it possible to get webmin to run some sort of script/process when the auto-logout feature kicks in? I need to create some temporary files, but do not want these left lying around when the user hits the logout button or the auto-logout occurs. Just exiting the browser is an alternative 'exit method' which I cannot decide what to do about (yet). I'm using webmin 1.090. Thanks, John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: Joh...@pl... Fax: +44 (0)1752 233839 |
From: Jamie C. <jca...@we...> - 2003-09-09 23:02:02
|
Currently, no - you'd need to modify the miniserv.pl script directly to call your own code at the appropriate times. However, this is quite a good idea for a new feature to add for a future version (along with a script to be run at login time). - Jamie On Wed, 2003-09-10 at 00:04, John Horne wrote: > Hello, > > Is it possible to get webmin to run some sort of script/process when the > auto-logout feature kicks in? I need to create some temporary files, but > do not want these left lying around when the user hits the logout button > or the auto-logout occurs. Just exiting the browser is an alternative > 'exit method' which I cannot decide what to do about (yet). > I'm using webmin 1.090. > > > Thanks, > > John. > > -- > --------------------------------------------------------------- > John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 > E-mail: Joh...@pl... Fax: +44 (0)1752 233839 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Jamie C. <jca...@we...> - 2003-09-10 09:44:15
|
Hi John, Even though it is a bit odd to reply to my own message, I just thought you might want to know that I have just added this feature to webmin, and it will be in version 1.110. If you edit /etc/webmin/miniserv.conf and add lines like login_script=/path/to/script/to/run/at/login logout_script=/path/to/script/to/run/at/logout and re-start webmin, those scripts will be run whenever a user logs in out out. Each will be passed the username, session ID, client IP address and local IP address as parameters. This will only work when webmin is in the default cookie-based authentication mode though, as HTTP authentication has no concept of logins and logouts. - Jamie On Wed, 2003-09-10 at 09:01, Jamie Cameron wrote: > Currently, no - you'd need to modify the miniserv.pl script directly to > call your own code at the appropriate times. However, this is quite a > good idea for a new feature to add for a future version (along with a > script to be run at login time). > > - Jamie > > On Wed, 2003-09-10 at 00:04, John Horne wrote: > > Hello, > > > > Is it possible to get webmin to run some sort of script/process when the > > auto-logout feature kicks in? I need to create some temporary files, but > > do not want these left lying around when the user hits the logout button > > or the auto-logout occurs. Just exiting the browser is an alternative > > 'exit method' which I cannot decide what to do about (yet). > > I'm using webmin 1.090. > > > > > > Thanks, > > > > John. > > > > -- > > --------------------------------------------------------------- > > John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 > > E-mail: Joh...@pl... Fax: +44 (0)1752 233839 > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Martin M. <mar...@de...> - 2003-09-10 09:55:46
|
Moin, moin, ... Jamie Cameron <jca...@we...> wrote: >Even though it is a bit odd to reply to my own message, I just thought >you might want to know that I have just added this feature to webmin, >and it will be in version 1.110. If you edit /etc/webmin/miniserv.conf >and add lines like Is it just done by adding those lines? Or is there another "devel" somewhere for retrieving? kind regards Martin Mewes --=20 Novacote Flexpack - Division of COIM Deutschland GmbH c/o IT/IS-Department - Hamburg - Germany |
From: John H. <j....@pl...> - 2003-09-10 10:29:40
|
On Wed, 2003-09-10 at 10:43, Jamie Cameron wrote: > Even though it is a bit odd to reply to my own message, I just thought > you might want to know that I have just added this feature to webmin, > and it will be in version 1.110. If you edit /etc/webmin/miniserv.conf > and add lines like > > login_script=/path/to/script/to/run/at/login > logout_script=/path/to/script/to/run/at/logout > Okay, many thanks! So quick too :-) John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: Joh...@pl... Fax: +44 (0)1752 233839 |
From: Jamie C. <jca...@we...> - 2003-09-10 10:44:06
|
On Wed, 2003-09-10 at 19:55, Martin Mewes wrote: > Moin, moin, ... > > Jamie Cameron <jca...@we...> wrote: > > >Even though it is a bit odd to reply to my own message, I just thought > >you might want to know that I have just added this feature to webmin, > >and it will be in version 1.110. If you edit /etc/webmin/miniserv.conf > >and add lines like > > Is it just done by adding those lines? > Or is there another "devel" somewhere for retrieving? Just by adding those lines and re-starting - however, I haven't actually released a version yet that includes support for those options. - Jamie |