Problems with rastaberry crontab

0

Hi, I have the following sh called rest.sh (it seeks to kill a program called actu that compiles in c and then rerun it). When I try the script it works correctly, kill the process and run it again.

    #!/bin/bash 
    kill actu
    actu
    exit 0

Add it to a cron task that should run every 5 minutes in the following way.

      5,10,15,20,25,30,35,40,45,50,55  *    * * *   root    sudo /home/raspberry/rest.sh

however the command is never executed. Any ideas? Greetings!

    
asked by Yoel Mendoza 24.10.2017 в 03:51
source

1 answer

0

Try this syntax in crontab

*/5 * * * 1-5 root sudo /home/raspberry/rest.sh
    
answered by 25.10.2017 в 13:55