<div class="gmail_quote">On Sat, Nov 7, 2009 at 10:05 AM, Drew <span dir="ltr"><<a href="mailto:drew.kay@gmail.com">drew.kay@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> Nonsense. You can't solve it either, can you? You're as stumped as the rest<br>
> of us...but arrogant, too.<br>
> V<br>
<br>
</div>Victor,<br>
<br>
To be brutally honest, you haven't given the list the info we need to<br>
help you solve this problem. I've been following this thread and so<br>
far I'm seeing a puzzle with half the pieces missing.<br></blockquote><div><br>Can you please ask questions that I can answer so that you can help me? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
That said the first line of your error messages typically indicates<br>
that the script can't find the python executable pointed at by the<br>
script on the #! line.<br></blockquote><div><br>[root@13gems html]# ls /usr/bin/|grep pyth*<br>python<br>python2<br>python2.4<br><br> Someone asked for the code:<br><br>THIS IS index,py<br><br>#!/usr/bin/python<br><br>import string<br>
import cgitb; cgitb.enable()<br>import cgi<br>import sys,os<br>sys.path.append(os.getcwd())<br>from template import template<br><br>ourFile = string.split(__file__, "/")<br>page = ourFile[len(ourFile) - 1][:-3]<br>
<br>form = cgi.FieldStorage()<br>w = form.getfirst('w', '1024')<br><br>template(page, w)<br><br>THIS IS template.py<br><br>#!/usr/bin/python<br><br>import cgitb; cgitb.enable()<br>import cgi<br>import sys,os<br>
sys.path.append(os.getcwd())<br><br>p = 'template'<br><br>def template(page, w):<br> wn = int(w)/1024<br> print "Content-Type: text/html"<br> print<br> print '''<br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</a>"><br>
<head xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br><style type='text/css'><br>.text { font-family: Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: none; text-align: justify}<br>
</style><br><title>Global Solutions Group</title><br><meta http-equiv="distribution" content="Global" /><br><meta http-equiv="robots" content="index all, follow all" /><br>
<meta name="author" content="This web site developed by beno. You may reach him at his web site [<a href="http://beno.vi">beno.vi</a>], or by dialing 340-773-0687 and asking for room 102." /><br>
<script language="JavaScript" type="text/JavaScript"><br><!--<br>function MM_preloadImages() { //v3.0<br>var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br>var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)<br>
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}<br>}<br><br>function MM_swapImgRestore() { //v3.0<br>var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;<br>
}<br><br>function MM_findObj(n, d) { //v4.01<br>var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {<br>d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}<br>if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];<br>
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);<br>if(!x && d.getElementById) x=d.getElementById(n); return x;<br>}<br><br>function MM_swapImage() { //v3.0<br>
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)<br>if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}<br>}<br>//--><br></script><br>
</head><br><body onload="MM_preloadImages('images/office-supplies-on.jpg','images/catalog-on.jpg','images/customer-template-on.jpg','images/forms-on.jpg','images/about-on.jpg','images/contact-on.jpg')"><br>
<script language="JavaScript1.2" src="quickmenu/sample_data.js"></script> <br><script language="JavaScript1.2" src="quickmenu/dqm_script.js"></script>'''<br>
print "<table width='%s' bgcolor='#ffffff' cellpadding='0' cellspacing='0'><!--" % (str(wn*1008))<br> print '--><tr><!--'<br> print '--><td><!--'<br>
print '--><img src="images/top.jpg" width="%s" height="%s" alt="" /><!--' % (str(wn*1008), str(wn*101))<br> print '--></td><!--'<br> print '--></tr><tr><!--'<br>
print '--><td><!--'<br> print '--><table align="left" width="%s" cellpadding="0" cellspacing="0"><!--' % (str(wn*1008))<br> print '--><tr><!--'<br>
print "--><td><img src='images/left.jpg' alt='' width='%s' height='%s' /></td><!--" % (str(wn*219), str(wn*21))<br> print '--><td><a href="index.py" onMouseOver="MM_swapImage("Home","","images/home-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/home-off.jpg" name="Home" id="Home" alt="Home" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*80), str(wn*21))<br>
print '--><td><a href="Office_Supplies.py" onMouseOver="MM_swapImage("office-supplies","","images/office-supplies-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/office-supplies-off.jpg" name="office-supplies" id="office-supplies" alt="office supplies" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*137), str(wn*21))<br>
print '--><td><a href="Catalog.py" onMouseOver="MM_swapImage("catalog","","images/catalog-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/catalog-off.jpg" name="catalog" id="catalog" alt="catalog" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*86), str(wn*21))<br>
print '--><td><a href="Customer_Templates.py" onMouseOver="MM_swapImage("customer-template","","images/customer-template-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/customer-template-off.jpg" name="customer-template" id="customer-template" alt="customer template" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*145), str(wn*21))<br>
print '--><td><a href="Forms.py" onMouseOver="MM_swapImage("forms","","images/forms-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/forms-off.jpg" name="forms" id="forms" alt="forms" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*84), str(wn*21))<br>
print '--><td><a href="About_Us.py" onMouseOver="MM_swapImage("about","","images/about-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/about-off.jpg" name="about" id="about" alt="about us" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*101), str(wn*21))<br>
print '--><td><a href="Contact_Us.py" onMouseOver="MM_swapImage("contact","","images/contact-on.jpg",1)" onMouseOut="MM_swapImgRestore()"><img src="images/contact-off.jpg" name="contact" id="contact" alt="contact us" width="%s" height="%s" border=0></a></td><!--' % (str(wn*100), str(wn*21))<br>
print '--><td><img src="images/right.jpg" alt="" width="%s" height="%s" /></td><!--' % (str(wn*72), str(wn*21))<br> print '''--></tr><!--<br>
--></table><!--<br>--></tr><tr><!--<br>--><td><!--'''<br> print '--><table width="%s" cellpadding="0" cellspacing="0"><!--' % (str(wn*1008))<br>
print '--><tr><!--'<br> print '--><td width="%s"><!--' % (str(wn*1008))<br> print '--><img src="images/bottom.jpg" width="%s" height="%s" alt="" /><!--' % (str(wn*1008), str(wn*15))<br>
print '''--></td><!--<br>--></tr><tr><!--<br>--><td><!--<br>--><table class="text"><tr><td><!--<br>'''<br> print '--><iframe src="%s_frame.py?p=%s&w=%s" width="%s" height="%s" frameborder="0"></iframe><!--' % (page, page, w, str(wn*988), str(wn*400))<br>
print '''<br>--></td><!--<br>--></tr><!--<br>--></table><br></body><br></html><br>'''<br><br>TIA,<br>V<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
<br>
--<br>
Drew<br>
<br>
"Nothing in life is to be feared. It is only to be understood."<br>
--Marie Curie<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>