From aa97c686369e0da5dd3330f413edf749c5ee345a Mon Sep 17 00:00:00 2001 From: maden Date: Thu, 22 Jul 2004 13:35:53 +0000 Subject: [PATCH] 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. --- App/scripts/call_select.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 App/scripts/call_select.py diff --git a/App/scripts/call_select.py b/App/scripts/call_select.py deleted file mode 100755 index df30fa3..0000000 --- a/App/scripts/call_select.py +++ /dev/null @@ -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()