<!DOCTYPE html>
<meta charset="utf-8">
<?php
require_once 'JobCommand.php';
require_once 'Context.php';
//命令を実行
$job = new JobCommand();
try {
$job->execute(new Context('begin date line diskspace line end'));
} catch (Exception $e) {
echo htmlspecialchars($e->getMessage(), ENT_QUOTES);
}
/*
//別の命令を実行した例
try {
$job->execute(new Context('begin line diskspace line date line end'));
} catch (Exception $e) {
echo htmlspecialchars($e->getMessage(), ENT_QUOTES);
}
*/