<div dir="ltr">I use that method all the time from a menu shell script.<div>What is the getenv command being used?</div><div><br></div><div>Alternative is to pass the datestamp on the command line using one of the -r flags.<br><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div>Bill McEachran</div><div><font size="1"><a href="mailto:bill.mceachran@gmail.com" target="_blank">bill.mceachran@gmail.com</a> 289-356-4406</font></div><div></div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 10 Jun 2020 at 14:35, Jay R. Ashworth via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Do I remember that the menu runner spawns a new shell for each line and<br>
even exporting a set variable doesn't help?<br>
<br>
I need to do something like this:<br>
<br>
DATESTAMP="`date '+%Y%m%d_%H%M%S'`"<br>
export DATESTAMP<br>
<br>
And then pick up $DATESTAMP inside my prc tables with a GETENV()<br>
<br>
Right now it's coming back blank, and I don't think that's fixable.<br>
<br>
Is there a go-to solution for doing this kind of tagging at the scope of<br>
a menu script?<br>
<br>
Cheers,<br>
-- jra<br>
<br>
-- <br>
Jay R. Ashworth Baylink <a href="mailto:jra@baylink.com" target="_blank">jra@baylink.com</a><br>
Designer The Things I Think RFC 2100<br>
Ashworth & Associates <a href="http://www.bcp38.info" rel="noreferrer" target="_blank">http://www.bcp38.info</a> 2000 Land Rover DII<br>
St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647 1274<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div>