Cron job execute backup.bash?

You should add the program with which you want to process this file; something like: 1 * * * * /bin/bash /var/www/mango_gis/delete_snapshot. Bash > /dev/null using the full path is important, because you do not have the environment variables loaded when cron starts the process.

You should add the program with which you want to process this file; something like: */1 * * * * /bin/bash /var/www/mango_gis/delete_snapshot. Bash > /dev/null using the full path is important, because you do not have the environment variables loaded when cron starts the process.

I have changed it to like this */1 * * * * /usr/bin/bash /var/www/mango_gis/delete_snapshot. Bash >/dev/null but it didn't work. – leejava Jun 9 '10 at 4:00 you may use "which bash" on commandline to find out the location of your bash program.

Then put this absolute path into your cron job. (location of programs differ from system to system, for example I got the bash program under /bin/bash (from your edit it looks like your absolute path to bash is the same)) – Thariama Jun 9 '10 at 6:42 yesh, I have do like that also, but it still not working – leejava Jun 9 '10 at 7:37 please copy/paste your command (everything afer the wildcards) to your commandline and tell us what happens (does it work propperly? ) – Thariama Jun 9 '10 at 7:56 I copy /bin/bash /var/www/mango_gis/delete_snapshot.

Bash > /dev/null and past it to my command, it worked fine. – leejava Jun 9 '10 at 8:04.

Thanks for your help so far. Now I can catch it. The problem is that cron not load the env variable so we just need to specify what we use to env variable while cron executing.

Here is my test code for ec2 command as below: export EC2_PRIVATE_KEY=/root/keys/pk-Q4NR5FGDTSWWK65EDSIDCBTEQWJ6G24V. Pem export EC2_CERT=/root/keys/cert-Q4NR5FGDTSWWK65EDSIDCBTEQWJ6G24V. Pem export JAVA_HOME=/usr/lib/jvm/java-6-sun/ export EC2_HOME_BIN=/usr/bin echo "start ec2-describe-snapshots" >> /var/log/ec2-delete-snapshot.

Log $EC2_HOME_BIN/ec2-describe-snapshots >> /var/log/ec2-delete-snapshot. Log echo "end it" >> /var/log/ec2-delete-snapshot.log.

That is exactly what I was talking about yesterday in the other comments to my answer (you need to push "show x more comments" to see them) – Thariama Jun 10 '10 at 6:20.

You should add the program with which you want to process this file; something like.

Thanks for your help so far. Now I can catch it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions