Results 1 to 5 of 5

Thread: Cron Job

  1. #1
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1175
    Reputation
    40746

    Default Cron Job

    Hi, I have added the following to my crontab....in bold/red

    Code:
    root@dm7020 ~ # crontab -l
    0 6 * * * /var/bin/oztivo_au.sh > /tmp/oztivo_au.sh.log 2>&1
    0 4 * * * init 6
    root@dm7020 ~ #

    I am assuming that this is all I will need to allow an reboot at 4am each morning??

    thanks

    porkop
    __________________________________________________ __
    Statistically, if you wait long enough, everything will happen!



Look Here ->
  • #2
    Premium Member
    Join Date
    Jan 2008
    Location
    Melbourne
    Posts
    855
    Thanks
    246
    Thanked 87 Times in 69 Posts
    Rep Power
    244
    Reputation
    886

    Default

    Probably,.. Have never actually done it,.. You could also try 'reboot' or 'shutdown -r now' all without the quotes.
    Last edited by jimbo123; 18-07-11 at 08:46 PM.

  • #3
    Senior Member

    Join Date
    Jan 2008
    Location
    Location, Location
    Posts
    4,054
    Thanks
    1,170
    Thanked 930 Times in 532 Posts
    Rep Power
    418
    Reputation
    4290

    Default

    be interesting to see if it works (as it should)...can you please post if it works.
    edit: has to be a shutdown.sh or reboot.sh sitting somewhere if all else fails.
    Last edited by z1gg33; 18-07-11 at 08:54 PM.
    If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.

  • #4
    Premium Member
    Join Date
    Jan 2008
    Location
    Melbourne
    Posts
    855
    Thanks
    246
    Thanked 87 Times in 69 Posts
    Rep Power
    244
    Reputation
    886

    Default

    Quote Originally Posted by z1gg33 View Post
    edit: has to be a shutdown.sh or reboot.sh sitting somewhere if all else fails.
    Most Unixy flavors have them located within /sbin

    e.g. for the VuDuo:
    Code:
    root@vuduo ~ # which reboot
    /sbin/reboot
    root@vuduo ~ # which shutdown
    /sbin/shutdown
    root@vuduo ~ #
    and for a Linux host I have here:
    Code:
    jimbo@mythtv:/tmp$ which reboot
    /sbin/reboot
    jimbo@mythtv:/tmp$ which shutdown
    /sbin/shutdown

  • #5
    Premium Lager

    Join Date
    Jan 2008
    Age
    60
    Posts
    4,882
    Thanks
    1,635
    Thanked 2,711 Times in 1,230 Posts
    Rep Power
    1175
    Reputation
    40746

    Default

    Hi guys, just an update, the "init 6" didnt work, I replaced it with a "reboot" and now the dm7020 reboots every morning at 4am.

    That has taken care of any issues I have experienced from prolong and continual running without a break.
    __________________________________________________ __
    Statistically, if you wait long enough, everything will happen!

  • The Following User Says Thank You to porkop For This Useful Post:

    z1gg33 (02-08-11)

  • Bookmarks

    Posting Permissions

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