Shell variables in menus?
Jay R. Ashworth
jra at baylink.com
Wed Jun 10 12:45:53 PDT 2020
Damnit. False alarm.
I'm setting DATESTAMP and exporting it...
and then using it to build the BATCHTAG I actually want to GETENV... and
not exporting that.
MORE CAFFEINE...
Cheers,
-- jra
----- Original Message -----
> From: "jra" <jra at baylink.com>
> To: "Filepro_List" <filepro-list at lists.celestial.com>
> Sent: Wednesday, June 10, 2020 2:35:04 PM
> Subject: Shell variables in menus?
> 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
--
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
More information about the Filepro-list
mailing list