Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set an environment variable in crontab in SOLARIS

807557Feb 28 2005 — edited Mar 3 2005
Hi,
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

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 31 2005
Added on Feb 28 2005
4 comments
1,712 views