Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    # EOF

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts