Shell variables in menus?

Fairlight fairlite at fairlite.com
Wed Jun 10 13:24:30 PDT 2020


*mistakes intensify*

On Wed, Jun 10, 2020 at 07:45:53PM +0000, Jay R. Ashworth via Filepro-list thus spoke:
> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list