Skip to content

Add ability to list tasks #2

@clphillips

Description

@clphillips

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:

crontab -l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions