User Tools

Site Tools


computing:voms_script

This is an old revision of the document!


Use this code snippet in a setup script to automatically check whether the VOMS proxy needs to be prolonged:

if [[ $(voms-proxy-info --timeleft) < 36000 ]]; then # 10 hours
   echo '>>> voms-proxy-init -voms cms -valid 200:0'
   voms-proxy-init -voms cms -valid 200:0
else echo ">>> voms still valid for another `date -u -d @$(voms-proxy-info --timeleft) +"%-d days %-H hours %-M minutes"`"
fi
computing/voms_script.1499777483.txt.gz · Last modified: 2017/07/11 14:51 by iwn