13 include_once (
"WHAT/Class.Crontab.php");
14 include_once (
"FDL/Lib.Util.php");
17 $usage->setDefinitionText(
"API script to manipulate user crontab");
18 $cmd =
$usage->addRequiredParameter(
"cmd",
"command to execute", array(
24 $file =
$usage->addOptionalParameter(
"file",
"path to cronfile (needed for cmd=register|unregister)", null, NULL);
25 $user =
$usage->addOptionalParameter(
"user",
"id of user", null, NULL);
38 $ret = $crontab->listAll();
46 error_log(
"Error: missing --file argument");
58 error_log(
"Error: missing --file argument");
68 case 'unregister-all':
70 if ($crontab->unregisterAll() ===
false) {
Verify arguments for wsh programs.