<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Experts,</div><div>I have noticed that my certificates need to be updated about 3x daily in order to keep working 24/7. I would like to automate this process. Currently, I use this command, and I invoke it manually:</div><div>&gt; /usr/java/default/bin/java -jar $HOME/.esg/MyProxyLogon-ESG.jar -u jennifer -h <a href="http://pcmdi3.llnl.gov">pcmdi3.llnl.gov</a> -p 2119</div><div>This pops up a little window where I type in my password and wait a bit for the certificates to update.&nbsp;</div><div><br></div><div>But looking more carefully at the error message in wget log, I see there is a -o option to feed the script my openID and then it will update the certificates if necessary -- clever! But how do I feed it my password when a cron job is launching the wget script -- will it work if I set an environment variable called 'pass' that contains my password? Or can I just set it inside the shell script that invokes the wget script (see below)?&nbsp;</div><div>Thanks!</div><div>--Jennifer</div><div><br></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div apple-content-edited="true">
<font class="Apple-style-span" face="Courier"><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; text-indent: 0px; orphans: 2; widows: 2; "><div><div>#!/bin/sh</div></div></span>pass=MyPasswordGoesHere<br>if [ -f ./dashi ] ; then<br></font><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; text-indent: 0px; orphans: 2; widows: 2; "><div><div><font class="Apple-style-span" face="Courier">&nbsp; ./wget.sh -v -i -o <a href="https://youknow">https://youknow</a> &gt; wget.log 2&gt;&amp;1 &amp; &nbsp;</font></div><div><font class="Apple-style-span" face="Courier">else</font></div><div><font class="Apple-style-span" face="Courier">&nbsp; ./wget.sh -v -o <a href="https://youknow">https://youknow</a> &gt; wget.log 2&gt;&amp;1 &amp; &nbsp;</font></div><div><font class="Apple-style-span" face="Courier">fi</font></div></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; "><font class="Apple-style-span" face="Courier"><br></font></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; "><font class="Apple-style-span" face="Courier"><br></font></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; "><br></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; ">--</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; ">Jennifer M. Adams</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; ">IGES/COLA</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; ">4041 Powder Mill Road, Suite 302</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; ">Calverton, MD 20705</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; "><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; "><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>