I believe that this file is now obsolete.

It used to be used by "bootinfo". But bootinfo now does all the work itself.
I can find no other script in /work/sls/bin wich calls call_select.py.
This commit is contained in:
maden
2004-07-22 13:35:53 +00:00
parent a34c57bf97
commit aa97c68636
-27
View File
@@ -1,27 +0,0 @@
#!/usr/bin/env python
#
#File: call_select.py
#Author: R.krempaska
#Description: The program should be called from bootinfo.
# It calls a ioc_select.php page which does select query as ssrm_public.
#
import httplib, sys, os, urllib
from urllib import quote_plus
sqlquery=sys.argv[1]
#print sqlquery
try:
conn=httplib.HTTP("pc3839.psi.ch")
req='/testplan/IOC_INFOS/ioc_select.php?SQLQUER='+quote_plus(sqlquery)
conn.putrequest('GET', req)
conn.endheaders()
errcode, errmsg, headers = conn.getreply()
f = conn.getfile()
data = f.read()
f.close()
print data
except:
out=open("/tmp/ioc_select.log", 'aw')
#need to write more - time of unsuccess, , author, etc
out.write(data)
out.close()