Setting global variables from a crontab job
I've a simple test script:
case $SET_THIS in
one) export SET_THIS=two
two) export SET_THIS=three
three) export SET_THIS=one
*) export SET_THIS=one
It sets the $SET_THIS variable in the current shell if I run it will a '.' ie . ./setscript - but - how do I do this from running the command from a crontab job? Is it possibe? I would like the crontab job to know the previous value of the variable when the script starts...
Last edited by davee; 10-06-2003 at 06:03 AM.