把 crontab 備份到 /tmp/trully/crontab
crontab -l > /tmp/trully/crontab
由 /tmp/trully/crontab 還原 crontab
crontab /tmp/trully/crontab
url.rewrite-once = (
".*" => "/_manager/maintain.php",
)
$cmd = '/usr/bin/ssh root@x.x.x.x cat /home/logs/consumer.log 2>&1'; $last_line = system($cmd, $retval); echo json_encode($retval).' / '.$last_line;