2014-12-10 - crontab and network interface restart

Header Data

From: bartosz <ba***z@miklaszewski.com>
Message Hash: 36cd6368f0d7f2dfc69c14811bd96d5a15fc3e0d4aaecaeb5bbacab7174f1c55
Message ID: <1a88193c-06c5-4934-b60f-55ae6fd74f7c@grasehotspot.org>
Reply To: N/A
UTC Datetime: 2014-12-10 19:14:48 UTC
Raw Date: Wed, 10 Dec 2014 18:14:48 -0800

Raw message

Hi guys,

i am having some small issue with my hotspot, as I thought it will be good 
to have small server i bough Intel next unit of computing, as it comes with 
one ethernet, i bought usb one for lan. so from time to time networks freez 
every couple few days. ( i know i will never buy usb card again :)))))

so i am trying to find out is it usb card get funny, so what ive done is:

from root ive run crontab -e to restart network interfaces every 12h

5 * * * * root /home/networkreset.sh >> /home/network.txt
(its 5 min just to try is it working)

/home/networkreset.sh
/etc/init.d/networking restart

in logs show:
Dec 11 02:02:01 harrys CRON[5756]: (root) CMD (root /home/networkreset.sh 
>> /home/network.txt)

so its working but in file: /home/network.txt is empty :(

HOW TO CHECK IS MY INTERFACE RESTART WORKS?





Thread