I'm trying to call a shell script every 5 minutes, witch executes php file under root.
# crontab -l */5 * * * * /home/regularuser/call.sh
-rw-rw-rw- 1 root root 162 Jun 6 23:40 call.php -rwxr-xr-x 1 root root 66 Jun 7 01:20 call.sh
#!/bin/bash php -q /home/regularuser/call.php echo "request processed"
My problem is that my php file doesn't get executed via crontab. However, if I call call.sh - everything works perfectly.
I'm new to crontab and shell scripting, so any advice/resources are welcome.