cancel
Showing results for 
Search instead for 
Did you mean: 

cron job set up

lovee
Level 5

Hello,

I have to set up cron job to get sctach media for each monday at 8:05AM.

when i used below command its not working.

5 8 * * 1 /usr/openv/volmgr/bin/vmquery -pn Scratch_pool -bx | awk '{ if ( $3 == "NONE" ) print $1 }' | mail -s "scratch tapes recall list" xyz@abc.com

But if i used to run it at any minute its working, like below command

* * * * * /usr/openv/volmgr/bin/vmquery -pn Scratch_pool -bx | awk '{ if ( $3 == "NONE" ) print $1 }' | mail -s "scratch tapes recall list" xyz@abc.com

 

Thanks

4 REPLIES 4

watsons
Level 6

Has nothing to do with Netbackup..

system logs give you an idea whether it's running the cronjob properly or not.

I would delete the whole line and key them in again to try.

Nicolai
Moderator
Moderator
Partner    VIP   

root gets a mail if a crontab fails, the mail should provide a hint of what failed.

Hello,

Thanks for the reply.

cron job is not working/running with specific day and time, rather its working if i gave all stars(to run it any minute). nothing i can see under root for any failed crontab related email.

 

thanks

sclind
Moderator
Moderator
   VIP   

Maybe there isnt an email.  Have you look at the cron log?