In my .bashrc I'm setting a bash variable to the output of a script
export FOO=`/home/jist/tools/lookup1.pl`
This works great except that the output of that script can change during the day (mainly depending on if I'm on the company's VPN or not). So when I do something with the variable, I want it to re-execute the script and get the updated value. I have no idea how to do this? Can someone please help?
Thanks in advance.