Scheduling Yun reboot using crontab

Hello everybody,
I would like to understand if it is right the crontab I wrote.
I want to run a python script every 6 hours. This python script, read a value from telnet stream and send it via wifi (UDP).
I need to reboot Yun because I realized that if wifi connection is not available Yun does not have the proper IP address. Therefore, to avoid this problem, I reboot the Yun every day (or even every 6 hours) before reading the value.
The crontab file is below. My doubt is that there could be a problem with this crontab.. because it happens that after few hours I can't reach Yun anymore neither via ssh. Also "ping" does not work.

QUESTION: Is it possibile that reboot command in crontab creates a loop?
I mean...if Linino reboots at 8 (I think it takes less than a minute), when the boot is completed the time is againt 8:00, therefore crontab reboots again...and again...
Is it possible ?

0 7 * * * /sbin/reboot
0 8 * * * reset-mcu >/dev/null 2>&1
1 8 * * * python /root/scripts/myPythonScript.py >/dev/null 2>&1

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.