Reply
Thread Tools
Posts: 472 | Thanked: 442 times | Joined on Sep 2007
#1
Anyone have an insight onto a crontab on Maemo 5?
__________________
If you don't know how to check your N900's uptime, you probably shouldn't own it.
 

The Following User Says Thank You to Laughingstok For This Useful Post:
Posts: 34 | Thanked: 4 times | Joined on Jan 2010
#2
this would be interesting to me, too.
 
Posts: 16 | Thanked: 2 times | Joined on Jan 2010
#3
Interesting. subscribed.
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#4
See my sig... I have fcron though it requires some manual tweaking to make it work fully.
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 

The Following 3 Users Say Thank You to ruskie For This Useful Post:
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#5
The functionality can largely be replicated using libalarm though a direct cron port, which sleeps sensibly, shouldn't really be a problem.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post:
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#6
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.
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 

The Following User Says Thank You to ruskie For This Useful Post:
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#7
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
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils

Last edited by ruskie; 2010-02-06 at 09:02. Reason: Corrected URL
 

The Following 6 Users Say Thank You to ruskie For This Useful Post:
Posts: 150 | Thanked: 91 times | Joined on Dec 2009 @ Norway
#8
@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.
 

The Following User Says Thank You to hstende For This Useful Post:
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#9
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
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 

The Following User Says Thank You to ruskie For This Useful Post:
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#10
Are the repositories down?

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

thanks,
Frank
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:49.