Jump to content
technomancer__

help cron goes on loop for an hour (6.6.6.) (solved)

15 posts in this topic Last Reply

Recommended Posts

I have made a .cron file in the dynamix folder

2134157455_Capture.PNG.fc5c66a1336c9f5f3b4a88333cf5015c.PNG

dockerrestart.cron

39905659_Capture.PNG.614e5ad9c03da28043bcc1d1958ff21b.PNG

here's the script also

300702571_Capture.PNG.2abf54cb702581de2a076e2b1fc8e7ab.PNG

my crontab

272436737_Capture.PNG.fb414f49335d361be5dd4caa249ce2bc.PNG

it starts at 4pm and keeps going until 5pm. what have I done wrong?

 

7612e2cf29211c71a10ec0fc16f608d2.jpg&key=6eb0e868969069bb572824454f72b2f4006008f0d686606c2cce14b800d5e1d9

 

Keeps going until 5

 

d13afdfc4c93923c5ffc0ae90518f2a2.jpg

 

Edited by technomancer__

Share this post


Link to post

Because * 17 * * * means that the script will run every minute (5p - 5:59p) 

You want 0 17 * * * to only run at 5p

  • Upvote 1

Share this post


Link to post
2 hours ago, Squid said:

Because * 17 * * * means that the script will run every minute (5p - 5:59p) 

You want 0 17 * * * to only run at 5p

oh thank you! i was so confused now i understand

Edited by technomancer__

Share this post


Link to post

did you

update_cron


 

 

  • Upvote 1

Share this post


Link to post

Maybe you added one a different way just reboot

Sent via telekinesis

  • Upvote 1

Share this post


Link to post
On 1/16/2019 at 9:33 PM, Squid said:

Maybe you added one a different way just reboot

Sent via telekinesis
 

i deleted the cron file with

crontab -d

and then updated cron with

update_cron

hope it works

 

btw i did restart and it didn't work. i will update tomorrow at if its fixed

Share this post


Link to post

What is the output of

crontab -l

and

cat /etc/cron.d/root

 

  • Upvote 1

Share this post


Link to post
6 hours ago, Squid said:

What is the output of


crontab -l

and


cat /etc/cron.d/root

 

143102903_Capture.PNG.de9d7ced6a577a64b53ce275e7180415.PNG

I think i will be able to fix it i will remove them and update cron. i will update you tomorrow

I just remove the 2 lines before # generated system monitoring schedule it save fine but when i update cron they come back

1386488006_Capture.thumb.PNG.b49a62905b1153ad9fc451624d91376a.PNG

Share this post


Link to post

Then you've added multiple .cron files (maybe in other directories) that are still the old version

Share this post


Link to post
7 minutes ago, Squid said:

Then you've added multiple .cron files (maybe in other directories) that are still the old version

🤦‍♂️i made other cron file name docker rather than dockerrestart

I updated cron and they are gone. hopefully, its fixed now.

thank you very much for your patience. 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now