I just wanted to run all my cronjob manually and immediately, following command works well in command line terminal but not working with
crontab -l | grep -v '^#' | cut -f 6- -d ' ' | while read CMD; do eval $CMD; done
Can anyone please help me how can I merge this with php, I tried as following but not working:
shell_exec('crontab -l | grep -v "^#" | cut -f 6- -d " " | while read CMD; do eval $CMD; done');
One more thing, I just wants to trigger without bothering about output and waiting.
I have also tried creating shell script:
cron.sh and tried:
Still no success