This is an old revision of the document!
Use this code snippet to automatically check whether the VOMS proxy needs to be prolonged: <code> if $(voms-proxy-info --timeleft) < 18000; then # 5 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 <\code>