Use PHP to create, edit and delete crontab jobs?

前端 未结 12 1499
余生分开走
余生分开走 2020-11-22 06:54

Is it possible to use PHP to create, edit and delete crontab jobs?

I know how to list the current crontab jobs of the Apache user:

$output = shell_ex         


        
12条回答
  •  我寻月下人不归
    2020-11-22 07:10

    You could try overriding the EDITOR environment variable with something like ed which can take a sequence of edit commands over standard input.

提交回复
热议问题