RE: Python does not get environment variable when using cron.

2008-08-18 Thread Stephen Cattaneo
PM - To: python-list@python.org - Subject: Re: Python does not get environment variable when using cron. - - On Aug 18, 11:15 am, "Stephen Cattaneo" - <[EMAIL PROTECTED]> wrote: - > Hello all, - > - > I am attempting to execute an automated test (written in Python) via - > cron

Python does not get environment variable when using cron.

2008-08-17 Thread Stephen Cattaneo
Hello all, I am attempting to execute an automated test (written in Python) via cron. I have to check the HOSTNAME variable as part of the test, oddly under cron the HOSTNAME environment variable is not in the os.environ dictionary. I know that cron runs in a subshell that does not have all of t

xcompile patch for python 2.5.2?

2008-08-12 Thread Stephen Cattaneo
Hi all, Personally I know nothing of cross compiling so please excuse my ignorance, if this question is silly. A friend of mine is attempting to cross compile python 2.5.2 onto a MIPS64 box. He is asking if there is a cross compile patch for 2.5.2. Do any of you know where He might find such a

RE: Best way to check if string is an integer?

2008-04-08 Thread Stephen Cattaneo
1E+1 is short hand for a floating point number, not an interger. >>> float("1E+1") 10.0 You could convert the float to an integer if you wanted (i.e. ceiling, floor, rounding, truncating, etc.). Cheers, Steve -Original Message- From: Martin Marcher [mailto:[EMAIL PROTECTED] Sent: Tuesd

RE: Running a python code periodically

2008-04-08 Thread Stephen Cattaneo
If your on a *NIX just use cron. Execute 'crontab -e' edit the file as desired and save see man crontab for formatting. Cheers, Steve From: Maryam Saeedi [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 10:54 AM To: python-list@python.

RE: manipulating hex values

2008-04-03 Thread Stephen Cattaneo
Thanks to everyone ( Grant, Cliff, and Gabriel) for responding and helping me. Cheers, Steve -Original Message- From: Grant Edwards [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 7:46 PM To: python-list@python.org Subject: Re: manipulating hex values On 2008-04-01, Stephen

Re: Re: manipulating hex values

2008-04-01 Thread Stephen Cattaneo
Gabriel Genellina wrote: > En Tue, > 01 Apr 2008 14:11:31 -0300, Stephen Cattaneo > <[EMAIL PROTECTED]> escribió: > >> I am relatively new to socket programming. I am attempting to use raw >> sockets to spoof my IP address. > > Don't bother to try... >

manipulating hex values

2008-04-01 Thread Stephen Cattaneo
Hi all, I am relatively new to socket programming. I am attempting to use raw sockets to spoof my IP address. From what I can tell I will have to build from the Ethernet layer on up. This is fine, but I am having some trouble with manipulating my hex values. Seems to me that there are tw