NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED]Crontab for scheduling

[SOLVED]Crontab for scheduling 6 years 2 weeks ago #1

  • S10-t
  • S10-t's Avatar
  • Offline
  • Junior Boarder
  • Posts: 47
  • Thank you received: 1
  • Karma: 0
Let me start by saying that i understand the fact that Openelec is developped to create an easy to maintain and use HTPC.
But next to that its also a lot more snappy in usuage than XBMC-live.
Allmost everything i want in openelec can be done but im missing te ability to schedule some of the things.
There is this nice add-on: Rsync which i used daily in my previous setup. I had a scheduled job to do some syncing across multiple clients. But now i have execute this command daily by hand.

Scheduling can be very usefull, and will not confuse nor interfere with the end user experience, since you dont have to use it. But the more novice linux users can get a lot of bennefit from it.

Is it possible to add the Crontab functionality to Openelec?
Thanks
Last Edit: 6 years 2 weeks ago by S10-t.
The administrator has disabled public write access.

Re: Crontab for scheduling 6 years 2 weeks ago #2

  • ultraman
  • ultraman's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 4647
  • Thank you received: 889
  • Karma: 324
I think it could be done. Busybox includes cron daemon but it's not included in OE.
I will test it and see how it works.
ultraman == vpeter
LAMP addon - Linux, Apache, MySQL PHP bundle
Sundtek and HDHomeRun DVB driver addons
The administrator has disabled public write access.

Re: Crontab for scheduling 6 years 1 week ago #3

  • ultraman
  • ultraman's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 4647
  • Thank you received: 889
  • Karma: 324
Just tested and it works. I will ask Stephan to include it.
ultraman == vpeter
LAMP addon - Linux, Apache, MySQL PHP bundle
Sundtek and HDHomeRun DVB driver addons
The administrator has disabled public write access.

Re: Crontab for scheduling 6 years 1 week ago #4

  • Croontje
  • Croontje's Avatar
If I want to use cron, do I need to build OE myself or can I install it on my existing OE installation?
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 11 months ago #5

  • S10-t
  • S10-t's Avatar
  • Offline
  • Junior Boarder
  • Posts: 47
  • Thank you received: 1
  • Karma: 0
Where can i find an indication of when this functionality will be added?
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #6

  • HeroicGlaedr
  • HeroicGlaedr's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
Hi,

I, too, would be interested in utilizing such a cron function to synchronize my media data on openELEC with the one on my NAS automatically.

Is this already integrated in the current release? If so, where can it be found?

Regards,
Glaed
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #7

  • queeup
  • queeup's Avatar
  • Offline
  • Senior Boarder
  • Posts: 132
  • Thank you received: 11
  • Karma: 2
I really want this feature. Only think avoiding me to use OpenELEC is I cant use flexget with cron :(

Please make it for all of us.
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #8

  • ericab
  • ericab's Avatar
  • Offline
  • Moderator
  • Posts: 555
  • Thank you received: 79
  • Karma: 70
Last Edit: 5 years 10 months ago by ericab.
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #9

  • queeup
  • queeup's Avatar
  • Offline
  • Senior Boarder
  • Posts: 132
  • Thank you received: 11
  • Karma: 2
Thanks to google and you :) I am compiling with cron support right now. But good to have officaly.
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #10

  • ultraman
  • ultraman's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 4647
  • Thank you received: 889
  • Karma: 324
I will push it again in official repository.
ultraman == vpeter
LAMP addon - Linux, Apache, MySQL PHP bundle
Sundtek and HDHomeRun DVB driver addons
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #11

  • queeup
  • queeup's Avatar
  • Offline
  • Senior Boarder
  • Posts: 132
  • Thank you received: 11
  • Karma: 2
its working good. Just something strange with init script I guess. Write daemon start information under openelec version line on boot. I think you will take care before push.

Let me try make flexget add-on then :)

flexget + transmission + openelec
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #12

  • S10-t
  • S10-t's Avatar
  • Offline
  • Junior Boarder
  • Posts: 47
  • Thank you received: 1
  • Karma: 0
Maybe im missing something. I've installed the most recent daily build i've found. "OpenELEC-ION.x86_64-devel-20111111140254-r8797.tar.bz2
"

But the cron daemon is not starting.
I've followed the link is this topic, in which Vpeter4 stated

"cron enabled in busybox
when init script first run folder is created /storage/.config/cron.sample
daemon starts only if folder exist /storage/.config/cron
this means nothing changed for other users - only little bigger busybox binary"

Which init script should i run?? Or should i just create a folder named cron in .config directory.
Last Edit: 5 years 10 months ago by S10-t.
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #13

  • queeup
  • queeup's Avatar
  • Offline
  • Senior Boarder
  • Posts: 132
  • Thank you received: 11
  • Karma: 2
S10-t wrote:
Or should i just create a folder named cron in .config directory.

yes it is. If there is no user config cron not start. Also one more problem usually if you use crontab -e command for put something to cron busybox crontab try to create that directory but busybox not build but fail because of can't find executable. I don't remember exactly. at the end you hafe to create that directory your self.

PS: did you build your self or you are useing builded openelec? Couse you have to build yourself for cron support.
Last Edit: 5 years 10 months ago by queeup.
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #14

  • ultraman
  • ultraman's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 4647
  • Thank you received: 889
  • Karma: 324
My cron changes are NOT yet in official repository.
ultraman == vpeter
LAMP addon - Linux, Apache, MySQL PHP bundle
Sundtek and HDHomeRun DVB driver addons
The administrator has disabled public write access.

Re: Crontab for scheduling 5 years 10 months ago #15

  • HeroicGlaedr
  • HeroicGlaedr's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
When will crontab be included in an official (fusion) build? Will it only be included in a nightly update?

Regards
Glaed
The administrator has disabled public write access.
The following user(s) said Thank You: Guyuflo