[error] [client 178.59.111.223] (2)No such file or directory: exec of

Ferrous Cranus nikos.gr33k at gmail.com
Wed Aug 28 06:46:00 EDT 2013


Τη Τετάρτη, 28 Αυγούστου 2013 1:43:08 μ.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε:
> Τη Τετάρτη, 28 Αυγούστου 2013 1:11:05 μ.μ. UTC+3, ο χρήστης ishish έγραψε:
> 
> 
> 
> > http://wiki.python.org/moin/HandlingExceptions
> 
> 
> 
> is this how you mean?
> 
> 
> 
> 		try:
> 
> 			#find the needed counter for the page URL
> 
> 			if os.path.exists( path + page ) or os.path.exists( cgi_path + page ):
> 
> 				cur.execute('''SELECT ID FROM counters WHERE url = %s''', page )
> 
> 				data = cur.fetchone()		#URL is unique, so should only be one
> 
> 		except:
> 
> 			print repr(query) 
> 
> 			print type(query) 
> 
> 
> 
> 			print repr(escaped_args) 
> 
> 			print type(escaped_args)
> 
> 
> 
> 
> 
> but i cannot see the error_log because of constant scrolling of error output.

i try: tail -F /usr/local/apache/logs/error_log | grep nikos &'

and see the follwing. if i dont grep at all i cannot stop the eroor output:

ikos at superhost.gr [~]# [Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120]   File "/home/nikos/public_html/cgi-bin/metrites.py", line 173, in <module>
[Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120]   File "/home/nikos/public_html/cgi-bin/metrites.py", line 176, in <module>
[Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120] File does not exist: /home/nikos/public_html/500.shtml



More information about the Python-list mailing list