maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Crontab? (https://talk.maemo.org/showthread.php?t=35723)

Laughingstok 2009-12-02 19:44

Crontab?
 
Anyone have an insight onto a crontab on Maemo 5?

kurtyy 2010-01-12 12:57

Re: Crontab?
 
this would be interesting to me, too.

LazyFox 2010-01-12 14:02

Re: Crontab?
 
Interesting. subscribed.

ruskie 2010-01-12 15:14

Re: Crontab?
 
See my sig... I have fcron though it requires some manual tweaking to make it work fully.

Jaffa 2010-01-12 23:21

Re: Crontab?
 
The functionality can largely be replicated using libalarm though a direct cron port, which sleeps sensibly, shouldn't really be a problem.

ruskie 2010-01-13 06:19

Re: Crontab?
 
Yeah fcron is such a thing. It just sleeps until it has something to do.

I'm using it to set profiles at certain times.

ruskie 2010-01-13 06:21

Re: Crontab?
 
Here's the info... Some of this needs to be improved for sure. But for now it works.
deb https://repo.codemages.net/opt ./

apt-get install fcron

What you need to do manually:
create a fcron user
chown fcron:fcron /etc/fcron.*
chown -R fcron:fcron /var/spool/fcron

Then edit /etc/event.d/rcS-late

And after initctl emit MOUNTS_OK

put:
/etc/init.d/fcron start

hstende 2010-02-06 08:26

Re: Crontab?
 
@ruskie thanks, I changed owner /etc.fcron.conf to root.fcron and chmod 644.
I also had to
mkdir -p /scratchbox/tools/bin
ln -s /usr/bin/vi /scratchbox/tools/bin/vi
so that I could use fcrontab -e to add crontab-file for root
I know use it to sync my calendar from my funabol-server every 10 min with syncevolution.

ruskie 2010-02-06 09:04

Re: Crontab?
 
If you actually want to have it use the editor you want then simply: export EDITOR=vi

Also you can change settings in /etc/fcron.conf I believe to tell it to use a different default editor.

You certainly don't need that mkdir and ln

Frank Banul 2010-02-10 23:17

Re: Crontab?
 
Are the repositories down?

https://repo.codemages.net/opt does not respond.

thanks,
Frank


All times are GMT. The time now is 12:05.

vBulletin® Version 3.8.8