Bash script:
$ cat test.sh
#!/bin/bash
while true
do
/home/user/public_html/website.com/test.php
sleep 5
done
Im trying to call it with c
You missed the & character to put the process in the background :
#!/bin/bash
while true
do
/home/user/public_html/website.com/test.php &
sleep 5
done
Ensure your script is eXecutable :
chmod +x /home/user/public_html/website.com/test.php
but to combine cron and this script, there's one way :
@reboot /path/to/script.sh
because you need only one instance of your script.
If you cron doesn't support @reboot, another possibility is to add a line in /etc/rc.local