This sample script newcert.sh gets the
certificate from the proxy. This is useful if the Opal job managers are
configured to use a proxy to submit jobs on behalf of the user. Note
that the -t 168 means that the certificate will be
valid for 168 hours or 7 days. The default certificate life time is
only 12 hours.
#!/bin/bash
export GLOBUS_LOCATION=/opt/gt4
. $GLOBUS_LOCATION/etc/globus-user-env.sh
. $GLOBUS_LOCATION/globus-devel-env.sh
echo $password | $GLOBUS_LOCATION/bin/myproxy-logon -t 168 -s myproxy.teragrid.org
-S &> logfile.log
echo running `date`>>logfile.log
cat logfile.log >> get_cert.log |
You may add the above script to crontab to run
newcert.sh at the beginning
of every hour.
0 * * * * $path_to_newcert_sh |