cron to work until you save the sh file again

0

Good morning.

I have a web server running in centos 7 with some schedules configured in cron to run from time to time.

Example: the file agenda_minuto.sh runs every 1 minute, the calendar_10_minutos.sh runs every 10 minutes, and so on.

From time to time the agenda_minuto.sh stopped running every Saturday at 8:00 am. The weirdest thing is that if I just open the file agenda_minuto.sh add a blank at the end of the file or at the end of any line and save it again it runs again. until next Saturday.

Now he started doing this every day at 5:35 pm and not just the agenda_minute, but any scheduling I have in cron.

So to make them work I just open and save them again and everything works again.

I have no idea why this works, but I believe that nothing is wrong with the cron configuration, otherwise it would not run, it seems that the .sh files are being corrupted in some way and when I open and save them record correct and everything works.

Detail, I use Ultra Studio to edit and save them always as Unix format files and with utf8 encode.

Can someone give me a light?

    
asked by anonymous 05.09.2018 / 12:50

0 answers