I need to run a command every minute if the time is between 3:00 pm and 11:00 pm and every hour at all other times. How to do it

*/1 15-23 * * * /path/script 

It will only run between 15 and 23 hours, but I need it to work the rest of the time. Or is it easier to make a new task?

  • four
    Two different tasks - two tasks. And that the script is the same - it is an accident. - Akina
  • ok, then I’ll do it - ivan0biwan

0