Hi all I am trying to run a bash script which contains following instructions, I have added the bash script to the cron job, when I checked the log the log says, AWS_CLOUDWATCH_HOME is not set. I am using Basic 32-bit Amazon Linux AMI 2011.09 micro instance.

I have set the PATH and also set AWS_CLOUDWATCH_HOME, but still it says the same,

kindly help me out in this

thanks a lot

link|improve this question

Cron runs with a mostly empty environment. HOME, LOGNAME, and SHELL are set; and a very limited PATH. You need to set your variable from within the same script (or import your variables, etc) for it to be effective in cron (e.g. see this question) – cyberx86 Jan 11 at 11:37
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.