Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-11 Thread KDawg44
On Apr 11, 1:15 am, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On 10 Apr 2007 11:54:18 -0700, KDawg44 [EMAIL PROTECTED] declaimed the following in comp.lang.python: [- BEGIN ERROR ---] Traceback (most recent call last): File changeLogs.py, line 47, in ? cursor.execute(UPDATE

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-11 Thread Steve Holden
KDawg44 wrote: [ ... ] ohhh okay. thanks so much. I knew that it came out as strings, i guess it makes sense that I would have to send it back IN as a string. Changed that and now it works! THanks so much. I just specified once specific field so that it would not change the whole db

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-11 Thread KDawg44
On Apr 11, 11:58 am, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On 11 Apr 2007 05:39:21 -0700, KDawg44 [EMAIL PROTECTED] declaimed the following in comp.lang.python: ohhh okay. thanks so much. I knew that it came out as strings, i guess it makes sense that I would have to send it back IN

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-11 Thread Steve Holden
KDawg44 wrote: On Apr 11, 11:58 am, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On 11 Apr 2007 05:39:21 -0700, KDawg44 [EMAIL PROTECTED] declaimed the following in comp.lang.python: ohhh okay. thanks so much. I knew that it came out as strings, i guess it makes sense that I would have to

Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread KDawg44
Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog server and I would like to parse the syslog messages and try to change any ips to resolved hostnames. Unfortunately, I am not

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread Kushal Kumaran
On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote: Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog server and I would like to parse the syslog messages and try to change

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread KDawg44
On Apr 10, 11:11 am, Kushal Kumaran [EMAIL PROTECTED] wrote: On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote: Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread KDawg44
On Apr 10, 1:54 pm, KDawg44 [EMAIL PROTECTED] wrote: On Apr 10, 11:11 am, Kushal Kumaran [EMAIL PROTECTED] wrote: On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote: Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread Steve Holden
KDawg44 wrote: On Apr 10, 11:11 am, Kushal Kumaran [EMAIL PROTECTED] wrote: On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote: Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a

Re: Parsing log in SQL DB to change IPs to hostnames

2007-04-10 Thread KDawg44
On Apr 10, 2:47 pm, Steve Holden [EMAIL PROTECTED] wrote: KDawg44 wrote: On Apr 10, 11:11 am, Kushal Kumaran [EMAIL PROTECTED] wrote: On Apr 10, 8:37 pm, KDawg44 [EMAIL PROTECTED] wrote: Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a