Results 1 to 2 of 2
Thread: Linux command line queries
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2012
Linux command line queries
we are using a Linux based unit to send out WIFI signals which then allows a user to connect to and surf the local content on the unit. The unit doesn't have a permanent internet connection and only has a 3G connection to update the content and download usage stats.
We are trying to do the following
reboot unit at 11am
turn on WIFI module at 12noon
turn on 3G module at 1pm
turn off 3G module at 2pm
tun off WIFI module at 11pm
We were given the below code by the manufacturer but it doesn't work, can someone help by supplying the correct code
It runs as a cronjob
0 11 * * * reboot >/dev/null 2>&1
0 12 * * * badctl wifi on >/dev/null 2>&1
0 13 * * * badctl modem on >/dev/null 2>&1
0 14 * * * badctl modem off >/dev/null 2>&1
0 23 * * * badctl wifi off >/dev/null 2>&1
What doesn't work?
Does each individual command work when you run it from the commandline? Do the jobs not run at the correct time? Does your crond.log have anything in it?