My cron and scripting skills are very poor, but I need to run a job every 5 minutes by user 'cpc'. So I created a script and left it at /root.My crontab -e entry about it is:0-59/5 * * * * /root/bi-kettle.shAnd this script (bi-kettle.sh) is:#!/bin/bashsu cpccd /home/cpc/data-integration /bin/bash kitchen.sh -rep=01 -job=MainLoad -user=admin -pass=admin -level=Basic`But it is not called or run at any moment. What am I missing here?Thanks in advance!
how do I run a cron job with a specific user?
bash;scripting;cron
That su is why it fails, that launches an interactive shell. Why not add it to the crontab of the cpc user instead? crontab -e -u cpc