Setting global variables from a crontab job
I've a simple test script:
#!/bin/bash
case $SET_THIS in
one) export SET_THIS=two
;;
two) export SET_THIS=three
;;
three) export SET_THIS=one
;;
*) export SET_THIS=one
;;
esac
echo $SET_THIS
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...
Dave
Last edited by davee; 10-06-2003 at 05:03 AM.
|