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 )
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 )
[Chris McDonough]
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, right-click on the My Computer icon, select Properties, and then the Environmental Variables tab. Another way to get to the same dialog.
You might try restarting Windows after adding the system variable to make sure it "takes".
Don't have to, but you will have to stop Zope and restart it. You can do this from the Services panel (Right-click on My Computer, then select Manage), or from a command prompt, using "net". If "zope" is the actual name of the Zope service, you can stop/start it with net stop zope net start zope Cheers, Tom P
Chris McDonough writes:
... 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 or simple insert "your_envvar=its_value" after the options (!) to your "z2.py" command line.
Dieter
On Thu, Jul 18, 2002 at 10:45:57AM +1000, Michael Fox wrote:
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
then this is not an environment variable,but a pyhon one. don't put this in z2.py under windows you surely have a .BAT or .CMD which launches Zope, and you have to put your variable assignment there, but I don't remember the exact syntax bye, Jerome Alet
participants (5)
-
Chris McDonough -
Dieter Maurer -
Jerome Alet -
Michael Fox -
Thomas B. Passin