The interface for this could be:
use Tictock\Scheduler\SchedulerFactory;
$factory = new SchedulerFactory();
$scheduler = $factory->create();
$scheduler->scheduled(); // returns array of commands (strings)
$scheduler->scheduled() could also accept a parameter to search for a command (as a regular expression):
$scheduler->scheduled('#user/bin/php /path/to/index\.php#i'); // returns an array of commands that match
On *nix:
NOTE: Items in the crontab may be disabled by being commented out (#), so this should be taken into consideration.
On Windows:
schtasks /query /v /fo CSV
The interface for this could be:
$scheduler->scheduled()could also accept a parameter to search for a command (as a regular expression):On *nix:
NOTE: Items in the crontab may be disabled by being commented out (#), so this should be taken into consideration.
On Windows: