Shell variables in menus?
William J. McEachran
bill.mceachran at gmail.com
Wed Jun 10 11:41:19 PDT 2020
I use that method all the time from a menu shell script.
What is the getenv command being used?
Alternative is to pass the datestamp on the command line using one of the
-r flags.
--
Bill McEachran
bill.mceachran at gmail.com 289-356-4406
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, 10 Jun 2020 at 14:35, Jay R. Ashworth via Filepro-list <
filepro-list at lists.celestial.com> wrote:
> Do I remember that the menu runner spawns a new shell for each line and
> even exporting a set variable doesn't help?
>
> I need to do something like this:
>
> DATESTAMP="`date '+%Y%m%d_%H%M%S'`"
> export DATESTAMP
>
> And then pick up $DATESTAMP inside my prc tables with a GETENV()
>
> Right now it's coming back blank, and I don't think that's fixable.
>
> Is there a go-to solution for doing this kind of tagging at the scope of
> a menu script?
>
> Cheers,
> -- jra
>
> --
> Jay R. Ashworth Baylink
> jra at baylink.com
> Designer The Things I Think RFC
> 2100
> Ashworth & Associates http://www.bcp38.info 2000 Land
> Rover DII
> St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647
> 1274
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200610/22e6c260/attachment.html>
More information about the Filepro-list
mailing list