Use PHP to create, edit and delete crontab jobs?

前端 未结 12 1443
余生分开走
余生分开走 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 06:57

    Nice...
    Try this to remove an specific cron job (tested).

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Current Cron Jobs:

    Add or Remove Cron Job

    Add New Cron Job:

    Remove Cron Job:

    Remove all cron jobs?

提交回复
热议问题