Seite 2 von 3 ErsteErste 123 LetzteLetzte
Ergebnis 11 bis 20 von 25
  1. #11
    Mitglied Avatar von contevlad
    Registriert seit
    04.07.2017
    Beiträge
    30
    Thanks (gegeben)
    1
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Zitat Zitat von RickX Beitrag anzeigen
    Yes, was a type, the correct name is /etc/cron/crontabs/root, but in post #1 the path is given as /etc/crontabs/cron
    I used the following path, inside the root folder I inserted the strings but it doesn't work. /etc/cron/crontabs/root
    Inside the root folder I put these strings:
    30 * * * * /usr/bin/ntpdate-sync silent
    00 05 * * * /usr/script/Reboot.sh
    15 05 * * * /usr/script/Standby.sh
    15 09 * * * /usr/script/RestartEmu.sh
    45 17 * * * /usr/script/RestartEmu.sh
    But it doesn't work.

    •   Alt Advertising

       

  2. #12
    Senior Mitglied
    Registriert seit
    16.10.2015
    Beiträge
    582
    Thanks (gegeben)
    156
    Thanks (bekommen)
    144
    Total Downloaded
    46,68 MB
    Total Downloaded
    46,68 MB
    ReceiverDanke
    Box 1:
    Technisat Digicorder isio s
     
     
    Box 2:
    Edision os mini S2 + S2
     
     
    Box 3:
    Edision os mio 4k +
     
     
    Hmm, I've just yesterday engaged successfully a new shell script to be run by cron, but I used "crontab -e" to edit root's crontab. Thus the modified crontab is loaded automatically into crond. Without that step maybe your changes are just ignored.

    As a strategy my scripts create a datestamp within /tmp to see if my script really run, e.g. I use something like
    Code:
    #! /bin/bash
    log=/tmp/SCRIPTNAME
    date > $log
    And maybe too simple: Check if your script after installation on your box works from command line.


    Regards, Michael
    Geändert von olwaldi (10.12.2022 um 07:42 Uhr)

  3. Thanks RickX bedankten sich
  4. #13
    Avatar von Pike_Bishop
    Registriert seit
    11.02.2020
    Ort
    here and there
    Beiträge
    2.437
    Thanks (gegeben)
    648
    Thanks (bekommen)
    1656
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Mutant HD2400
     
     
    Box 2:
    VU Ultimo 4K
     
     
    Box 3:
    Octagon SF8008
     
     
    Box 4:
    Gigablue Quad 4K
     
     
    Box 5:
    VDR
     
     
    Hi contevlad,

    no it's not complicated, all you need to do for a first test is to delete your /etc/cron/crontabs/root, and then (you know telnet or ssh) establish a telnet or ssh connection to your box
    and execute in telnet or ssh the following command;
    Code:
    (crontab -l 2>/dev/null; echo "0 5 * * * sh /usr/script/Reboot.sh") | crontab -
    you can cut and paste the command from above into telnet or ssh and then press the enter button.
    last, simply restart the box completely.

    and if it works you do the same for your other scripts.


    you write scripts or ? if yes then this isn't complicated.


    regards
    Pike
    Geändert von Pike_Bishop (10.12.2022 um 18:26 Uhr)

  5. #14
    Mitglied Avatar von contevlad
    Registriert seit
    04.07.2017
    Beiträge
    30
    Thanks (gegeben)
    1
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Zitat Zitat von Pike_Bishop Beitrag anzeigen
    Hi contevlad,

    no it's not complicated, all you need to do for a first test is to delete your /etc/cron/crontabs/root, and then (you know telnet or ssh) establish a telnet or ssh connection to your box
    and execute in telnet or ssh the following command;
    Code:
    (crontab -l 2>/dev/null; echo "0 5 * * * sh /usr/script/Reboot.sh") | crontab -
    you can cut and paste the command from above into telnet or ssh and then press the enter button.
    last, simply restart the box completely.

    and if it works you do the same for your other scripts.


    you write scripts or ? if yes then this isn't complicated.


    regards
    Pike
    Hi Pike
    I have deleted /etc/cron/crontabs/root
    Then via telnet I entered my decoder and gave this command of yours (crontab -l 2>/dev/null; echo "0 5 * * * sh /usr/script/Reboot.sh") | crontab - and I restarted the decoder then I followed your command changing time and Stanbay - restarEmu
    I restarted everything, the permissions remained 600 did not change it.
    But it doesn't work at the time it won't restart.
    Inside the root folder here are the strings.
    But they don't work
    The root folder has permissions 600 maybe I have to change the permissions and if the set times are fine.
    Thank you.
    0 5 * * * sh /usr/script/Reboot.sh
    15 5 * * * sh /usr/script/Standby.sh
    15 9 * * * sh /usr/script/RestartEmu.sh
    45 17 * * * sh /usr/script/RestartEmu.sh

  6. #15

    Registriert seit
    20.12.2016
    Beiträge
    1.520
    Thanks (gegeben)
    399
    Thanks (bekommen)
    1065
    Total Downloaded
    39,16 MB
    Total Downloaded
    39,16 MB
    ReceiverDanke
    Box 1:
    SF8008 - oATV 7.4 - oATV 7.5 Devel
     
     
    Box 2:
    Duo2 - oATV 7.3
     
     
    Box 3:
    HD2400 - oATV 6.3 (+6.4 all arch feed)
     
     
    Box 4:
    LX3 - oATV 6.3
     
     
    Box 5:
    Raspberrypi3 TvHeadend TBS5520SE
     
     
    Did you try to add these cron entries via the GUI?

    /etc/crontabs/cron-1_0_1f_301_103_2114_eeee0000_0_0_0_20221211111203.jpg

    If you do not have any special tasks in your reboot and standby scripts you may use the built-in power timer. Since 7.0 they allow exactly such things.

    /etc/crontabs/cron-1_0_1f_301_103_2114_eeee0000_0_0_0_20221211111450.jpg

  7. #16
    Mitglied Avatar von contevlad
    Registriert seit
    04.07.2017
    Beiträge
    30
    Thanks (gegeben)
    1
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    /etc/crontabs/cron-1.jpg/etc/crontabs/cron-2.jpg/etc/crontabs/cron-3.jpg

  8. #17
    Senior Mitglied
    Registriert seit
    01.09.2015
    Beiträge
    414
    Thanks (gegeben)
    366
    Thanks (bekommen)
    116
    Total Downloaded
    72,57 MB
    Total Downloaded
    72,57 MB
    ReceiverDanke
    Box 1:
    VU+ Uno 4K SE mit 6.4
     
     
    Box 2:
    Octagon SF8008 Mini mit 6.4
     
     
    Box 3:
    Edision OS Mini mit 6.4
     
     
    I don't know of Inunderstand you correctly or you have write it a little bit confused.
    Zitat Zitat von contevlad Beitrag anzeigen
    I have placed the following scripts inside the cron folder as path /etc/crontabs/cron
    So your scripts are in the cron folder and not in /usr/script/?
    You have to put your scripts in /usr/scripts/ as you have specified it.
    I opened it with notepad and entered the following strings:
    30 * * * * /usr/bin/ntpdate-sync silent
    00 05 * * * /usr/script/Reboot.sh
    15 05 * * * /usr/script/Standby.sh
    15 09 * * * /usr/script/RestartEmu.sh
    45 17 * * * /usr/script/RestartEmu.sh

  9. #18
    Senior Mitglied Avatar von RickX
    Registriert seit
    30.05.2022
    Ort
    NRW
    Beiträge
    309
    Thanks (gegeben)
    138
    Thanks (bekommen)
    159
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Box 1:
    Vu+ Uno 4K SE (OpenATV 7.0)
     
     
    Box 2:
    Vu+ Duo 2 (VTI 15)
     
     
    I think this is just a problem of language and technical terms...

    The correct file name is ./etc/crontabs/root



    Please note:

    • root is not a folder. This is a simple file containing some lines of text.
    • The file root doesn't need execute permissions. 600 is perfectly ok
    • The crontab should never be edited directly in the file. Use the crontab command instead.


    You should add some diagnostic output to your shell scripts.
    You can write date and time of every shcript execution into a log file, e.g. in /var/log.
    If oyu execute the shell scripts manually from the command line, you can check, if the log lines are generated correctly.
    Once this is done, you can check, if the crontab executes the shell scripts. In this case the log lines will be generated, too.

  10. #19
    Mitglied Avatar von contevlad
    Registriert seit
    04.07.2017
    Beiträge
    30
    Thanks (gegeben)
    1
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    I know that root is not a folder. It is a simple file containing a few lines of text.
    But it's strange that I can't execute commands via the command Menu' - Time - Cron Timer - green key add as soon as you compose the command crashes. Yet some other image all this procedure can be done by remote control and works great. because inside the image it has the scripts that you can enable and activate.
    I also followed Pike's guide to the letter by inserting the string he sent me via telnet and then restarted the decoder then I go to check on the root I see that the command string was successful or /etc/cron/crontabs/root I get the following string inside the root 0 5 * * * sh /usr/script/Reboot.sh
    but it doesn't work it doesn't reboot

  11. #20

    Registriert seit
    20.12.2016
    Beiträge
    1.520
    Thanks (gegeben)
    399
    Thanks (bekommen)
    1065
    Total Downloaded
    39,16 MB
    Total Downloaded
    39,16 MB
    ReceiverDanke
    Box 1:
    SF8008 - oATV 7.4 - oATV 7.5 Devel
     
     
    Box 2:
    Duo2 - oATV 7.3
     
     
    Box 3:
    HD2400 - oATV 6.3 (+6.4 all arch feed)
     
     
    Box 4:
    LX3 - oATV 6.3
     
     
    Box 5:
    Raspberrypi3 TvHeadend TBS5520SE
     
     
    Your scripts may be faulty.

    You can check whether cron executed them by typing
    Code:
    grep -rin CROND /var/log/messages
    You may post one of the scripts that is not working and the output of the command given above here.
    Please set it in "code" to not flood the topic / post. You can also save it to a text file and attach it to a post.


Seite 2 von 3 ErsteErste 123 LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:53 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com