Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 4 of 4

Thread: Cron timers

  1. #1

    Title
    Member
    Join Date
    Aug 2010
    Posts
    46
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Cron timers

    Hello guys,

    can anybody help me how to put cron timer that remote control command "EXIT" be activated in 01.00 Daily.

    I tried to add cron timer 'root' I've put the following code in root file in /etc/cron/root

    Code:
    30 * * * *    /usr/bin/ntpdate-sync silent
    wget -q wget -q http://127.0.0.1/web/remotecontrol?command=174
    but nothing happens.

    I need that because "Behavior after movie reach the end" - "return to service" is nto workign properly. After movie reach the end it "return to movie list"

  2. #2
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    The first 5 fields in a crontab file are:
    Code:
                  field          allowed values
                  -----          --------------
                  minute         0-59
                  hour           0-23
                  day of month   1-31
                  month          1-12 (or names, see below)
                  day of week    0-7 (0 or 7 is Sun, or use names)
    (although you might not be able to use names here...). A * in a field means "any value" (so * * * * * gets run every minute...).
    Or read the readme.txt file in /etc/cron/crontabs/.

    So, the line you need would be:Whether it is the correct thing to do is another matter.
    Last edited by birdman; 05-11-15 at 11:24.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. #3

    Title
    Member
    Join Date
    Aug 2010
    Posts
    46
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Thanks. What I should I put in vu duo2 menu, under "command to run" ?
    Attached Images Attached Images

  4. #4
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,779
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Well - the command you gave is wrong in two ways. The PATH_INFO is wrong, and the command will try to right the result to a file called remotecontrol?command=174, which is an invalid file on the vfat file-system I was in while testing on my MBTwin (so an error was reported), but not illegal on my Linux laptop (which therefore worked). [I ended up running strace to resolve that one...].
    So, the command you would need is:
    Code:
    wget -q -O /dev/null 'http://mbtwin/api/remotecontrol?command=174'
    But the reference to "the correct thing" was that the issue should be fixed, not worked around.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.