hello guys,
Is this possible, a php script will trigger the cron to start running? if it is possible how? π thanks
Eh? Like have a php script start the cron process on the server? Sure, I guess it could. Create a shell script to su and start the process, use backticks or a [man]system[/man] call to the shell script.
I don't really have an idea about shell scriptingπ can you give an example of php script w/c start the crob to process and also shell scirpt? plsss? And also what is backtick?
Well, I really don't have time to go through the whole thing and test it, but here's the idea
The shell script
#! /bin/sh CRON=/usr/sbin/crond USER=root su - $USER -c "$CRON start" exit 0
PHP Script
<?php `/path/to/shell_script.sh` ?>
thanks LordShryku, π