/[pdpsoft]/trunk/grid-mw-security/glexec/util/wrap-env-var/old/wrap-wrap-glexec-env.sh
ViewVC logotype

Contents of /trunk/grid-mw-security/glexec/util/wrap-env-var/old/wrap-wrap-glexec-env.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389 - (show annotations) (download) (as text)
Thu Jun 4 09:27:14 2009 UTC (13 years, 3 months ago) by okoeroo
File MIME type: application/x-shellscript
File size: 704 byte(s)
Moved my shell script solutions.


1 #!/bin/sh
2
3
4 function wrap_env () {
5 # Setting new break characters
6 PRESERVED_IFS=$IFS
7 IFS=`echo -en "\n\b"`
8 for i in `printenv`; do
9 D=`echo "$i" | sed -e 's/\([a-zA-Z_][a-zA-Z0-9_]*\)=\(.*\)/GLEXEC_WRAP_\1="\2"/'`
10 export $D
11 done
12 IFS=$PRESERVED_IFS
13 }
14
15
16 export X509_USER_PROXY=$HOME/mkproxy-x509-voms
17 export GLEXEC_CLIENT_CERT=${X509_USER_PROXY}
18
19
20 export LD_LIBRARY_PATH=foo
21 export MY_1337_HAX0R_PASSWD_CONTENT=foo
22
23 echo "------ fire $0 wrap_env ------"
24 wrap_env
25
26 echo "------ fire with gLExec and the unwrapper and test ------"
27
28 # cmd="/opt/glite/sbin/glexec `which printenv`"
29 cmd="/opt/glite/sbin/glexec /tmp/unwrap-wrap-glexec-env.sh"
30
31 $cmd
32
33 rc=$?
34 exit $rc

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28