source: TI03-DataExtractor/branches/old_stuff/dx_badc/security_test.py @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx_badc/security_test.py@793
Revision 793, 362 bytes checked in by astephen, 13 years ago (diff)

Put all the old code in the old_stuff branch.

  • Property svn:executable set to *
Line 
1#!/usr/local/cdat/bin/python
2
3import commands
4import re
5
6line=commands.getoutput('/var/www/cgi-bin/security_test3.pl')
7print "Content-Type: text/html\n\n"
8#print line, "<P>"
9
10
11match=re.search("START_GROUPS::(.*)::END_GROUPS", line)
12if match:
13       groups=match.group(1)
14       grouplist=groups.split(", ")
15       
16print "VALID GROUPS:", grouplist
17   
18       
19
Note: See TracBrowser for help on using the repository browser.