dynamically set up ssh -r & paramiko?

2008-01-30 Thread washakie
Hello, I'm trying to write a script which will allow me to initiate (spawn?) an SSH reverse tunnel from an internal box (inside a firewall) to an external box, while logged into the external box. I posted to another list and was pointed in the direction of paramiko. I've read the tutorials, but

Re: find nearest time in datetime list

2008-01-30 Thread washakie
Thanks all! This is terrific, and a quick response... I have to go with the 2.4 version, but thanks to everyone... Tim Golden-4 wrote: > > washakie wrote: >> Hello, >> >> I have a list of datetime objects: DTlist, I have another single datetime >> object: dt,

find nearest time in datetime list

2008-01-30 Thread washakie
Hello, I have a list of datetime objects: DTlist, I have another single datetime object: dt, ... I need to find the nearest DTlist[i] to the dt is there a simple way to do this? There isn't necessarily an exact match... Thanks! .john -- View this message in context: http://www.nabble.

Re: MySQL-python-1.2.2 install with no mysql

2008-01-15 Thread washakie
Thank you... after: %yum install mysql* I was able to build and install mysql-python -- View this message in context: http://www.nabble.com/MySQL-python-1.2.2-install-with-no-mysql-tp14836669p14845579.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://ma

Re: MySQL-python-1.2.2 install with no mysql

2008-01-15 Thread washakie
Okay, I've installed mysql then using yum... it installed the same version running on another machine with identical python where all works well... but now I get this error during build... thoughts?!?? mysql_config is there, and the site.cfg file is pointing correctly to it... : [root@ MySQL-pyth

MySQL-python-1.2.2 install with no mysql

2008-01-15 Thread washakie
Hello, I need to install the MySQL-python-1.2.2 connector in order to access a db on another machine. In the install it asks for the location of the mysql_config file, and if I leave it as the default I get: [EMAIL PROTECTED] MySQL-python-1.2.2]# python setup.py build sh: mysql_config: command n