How to set an environment variable in crontab in SOLARIS
807557Feb 28 2005 — edited Mar 3 2005Hi,
I have strange problem in using cron. i have written a shell script
which is to be automated using cron. Inside the shell script i have to pick up a variable which can be set up either globally in an environment file or inside the crontab file. when i set it up inside the environment file and run the script , it works fine. but thesame script when scheduled doesnt work. I guess the problem is with picking the variable ($VAR_HOME) definition when being executed from cron.How do i set variable definitions inside the crontab file?
Same scenario works fine in Linux environment.
thanks in advance
Vijay