Quantcast
Channel: Question and Answer » cron
Viewing all articles
Browse latest Browse all 165

Executing MySql stored proc in Crontab [closed]

$
0
0

I have a MySQL stored proc named “item” and I want Cron to run it for me – in server of course. I’m avoiding using MySQL events to unify all my ‘jobs’ – backup,etc.

Any how this is what I did in my crontab after I did nano /etc/crontab

# m h dom mon dow user command <=== My crontab fromat
00 12 * * * root mysql -e 'Call Item()' <====but this doesn’t work

P.S Did the service cron restart.

Any idea how?


Viewing all articles
Browse latest Browse all 165

Latest Images

Trending Articles



Latest Images