Good point, will let you know how I go :) -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris McDonough Sent: Thursday, 18 July 2002 11:17 AM To: Michael Fox; Jerome Alet Cc: zope@zope.org Subject: Re: [Zope] Changing a Zope environment variable? You might try restarting Windows after adding the system variable to make sure it "takes". ----- Original Message ----- From: "Michael Fox" <Michael@CenturySoftware.com.au> To: "Chris McDonough" <chrism@zope.com>; "Jerome Alet" <alet@librelogiciel.com> Cc: <zope@zope.org> Sent: Wednesday, July 17, 2002 9:13 PM Subject: RE: [Zope] Changing a Zope environment variable? Thanks Jerome/Chris, Adding a new Windows System Variable, and restarting the Zope service, didn't seem to do the trick... But, modifying start.bat to look like this - "E:\Zope\Zope-2.5.1\bin\python.exe" "E:\Zope\Zope-2.5.1\z2.py" -w 80 ZSESSION_TIMEOUT_MINS=180 -D %1 %2 %3 %4 %5 %6 %7 %8 %9 Works great. The entry in z2.py (ZSESSION_TIMEOUT_MINS=180) is not required. But I still have the problem of wanting Zope to run as a winnt service =\ Michael -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris McDonough Sent: Thursday, 18 July 2002 10:53 AM To: Michael Fox; Jerome Alet Cc: zope@zope.org Subject: Re: [Zope] Changing a Zope environment variable? You've successfully created a Python variable but you haven't set an environment variable. ;-) In Windows NT/2000/XP, I believe the incantation for setting environment variables is either: - Use the Settings -> Control Panel -> System -> Advanced -> Environment Variables tab and set a "system variable" by clicking "New" or - In your Zope's START.BAT file, insert on a line above any of the others: set ZSESSION_TIMEOUT_MINS=20 HTH, - C ----- Original Message ----- From: "Michael Fox" <Michael@CenturySoftware.com.au> To: "Jerome Alet" <alet@librelogiciel.com> Cc: <zope@zope.org> Sent: Wednesday, July 17, 2002 8:45 PM Subject: RE: [Zope] Changing a Zope environment variable? Thanks Jerome, My Zope server is running on a Windows platform. After adding the following entry in z2.py (assuming this is the right place to do so)... ZSESSION_TIMEOUT_MINS=180 And restarting the Zope WinNT service, the Transient Object Container's timeout value is still set to 20 mins?! Michael -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jerome Alet Sent: Thursday, 18 July 2002 10:21 AM To: Michael Fox Cc: zope@zope.org Subject: Re: [Zope] Changing a Zope environment variable? On Thu, Jul 18, 2002 at 10:04:02AM +1000, Michael Fox wrote:
how/where do I modify the value of a Zope enviroment variable?
in Zope's startup script. (/etc/init.d/zope with my Debian) the ZShell software available from http://www.librelogiciel.com/software/ also allows you to modify them while running, but possible collateral damage of such an action remains to be investigated (anyway it works). hth. Jerome Alet _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )