Linux command line queries

Discussion in 'General Linux' started by blueapricot, Sep 10, 2012.

  1. blueapricot

    blueapricot New Member

    Joined:
    Sep 10, 2012
    Messages:
    1
    Likes Received:
    0
    Hello,

    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. nooran

    nooran New Member

    Joined:
    Sep 11, 2012
    Messages:
    5
    Likes Received:
    0
    Thankssss
     
  3. pin

    pin New Member

    Joined:
    Oct 25, 2012
    Messages:
    3
    Likes Received:
    0
    Try to put each command into shell script and run the shell script from crontab. Not a command itself
     

Share This Page