[Halld-offline] MCwrapper token
Peter Hurck
ppauli at jlab.org
Mon Oct 21 12:23:46 EDT 2024
Hi Richard,
See the script below that is run every five minutes by the mcwrapper user to renew its token on the OSG submit host. I think Thomas (cc’d) worked on this with Kurt Strohsal.
I hope that helps.
Cheers,
Peter
#!/bin/bash
#use ssh agent to grab a new token
# User specific aliases and functions
export XDG_RUNTIME_DIR=/run/user/10967
export BEARER_TOKEN_FILE=/var/run/user/10967/bt_u10967
eval `ssh-agent`
/usr/bin/ssh-add
/usr/bin/htgettoken --nooidc -v -a htvault.jlab.org <http://htvault.jlab.org/> -i jlab -r gluex
ssh-agent -k
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20241021/2cbb98b6/attachment.html>
More information about the Halld-offline
mailing list