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

Try to put each command into shell script and run the shell script from crontab. Not a command itself

Latest posts