OpenWrt Forum Archive

Topic: crond working?

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all, been using linux for 2 years now, loving that anything is possible!

I just installed Kamikaze 8.09 on my brothers wrt54gs. Works so far. I am trying to set up a cron job to run a script that will run wol when it sees the ps3 to start a media drive, but not sure if cron is enabled (or is already or if I'm having a problem [bug]).

I ssh into the router and go into /etc and crontabs is in there, but when I open it with vi it's blank and says it's not a regular file, and when I try to quit (:wq) it comes up with a message that says crontabs is a folder (and I tried to cd into it to check, no go). Is this a bug? or do I just have to replace that crontabs file with a new one?

I want to be really cautious and not brick it since it's my bros, so I wanted to check with the group.

ok made a little headway, but still not fully working.

I ran crontab -e which created /etc/crontabs/root which I put:

1 * * * * /usr/bin/wol -p 9 -i ipa.ddr.e.ss 11:22:33:44:55:66        #-p 9=UDP port

.... ok maybe a little working, it started up after about 10 minutes of nothing. not sure why so long... and then the NAS shut down again. Not sure if wol works the same as wakeonlan in the debian repos,  cause that works great, it kept the NAS up. Can I port wakeonlan to Kamikaze? Going to have to look into it more after work.

rookie mistake

*/1 * * * * for every minute
1 * * * * for on the first minute of every hour


anyone know how to see the currently networked devices macs? dhcp.leases leaves them in for too long for what I need. I want to run something to check. I've been searching the bins and sbins and --help-ing everything I find but no luck.

Hi.

Check this:

cat /proc/net/arp

~ JoW

jow, thanks!

seems like arp updates every couple of minutes which is great. Will post resulting script on another thread.

The discussion might have continued from here.