maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   edit cron on OS2008? (https://talk.maemo.org/showthread.php?t=25686)

Lord Raiden 2008-12-19 19:29

edit cron on OS2008?
 
Anyone know how to create and edit cron jobs on OS2008? I've got Chinook right now.

GeneralAntilles 2008-12-19 19:31

Re: edit cron on OS2008?
 
There is no cron.

Lord Raiden 2008-12-19 19:51

Re: edit cron on OS2008?
 
Holy cr**! Seriously!? 0_0 How does the unit do it's daily task stuff then? I thought all Linux systems had cron. I know you don't need to run daily reports and the like, but I would suspect that there's something you'd want to run daily, hourly, etc.

GeneralAntilles 2008-12-19 19:58

Re: edit cron on OS2008?
 
alarmd

cron is a battery killer, alarmd does the same stuff but with battery life in mind.

Lord Raiden 2008-12-19 21:09

Re: edit cron on OS2008?
 
Ah, didn't know that cron was that much of a battery hog. So where's the man file for AlarmD? The reason I'm asking is I'm looking at writing a perl script that acts as a locater for my NIT should someone walk off with it. But for it to work, it needs to wake up every so often and report where it's at.

GeneralAntilles 2008-12-19 21:31

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 250968)
Ah, didn't know that cron was that much of a battery hog. So where's the man file for AlarmD? The reason I'm asking is I'm looking at writing a perl script that acts as a locater for my NIT should someone walk off with it. But for it to work, it needs to wake up every so often and report where it's at.

This might help.

Lord Raiden 2008-12-19 23:49

Re: edit cron on OS2008?
 
Ah, danke good sir. :D

GeneralAntilles 2008-12-20 01:32

Re: edit cron on OS2008?
 
Also: http://maemo.org/api_refs/4.0/alarm-api/

Jaffa 2008-12-20 08:18

Re: edit cron on OS2008?
 
Quote:

Originally Posted by GeneralAntilles (Post 250945)
alarmd

cron is a battery killer, alarmd does the same stuff but with battery life in mind.

Not really: I looked at the cron source when the 770 was released and it quite properly sleeps until the next alarm - so shouldn't be too much of a battery hog. Although it wouldn't provide a mechanism for waking up the device from power-off, like alarmd without some of the code in alarmd.

alarmd is the right way, as you say, but it's just Nokia's NIH syndrome rather than any technical reason (a DBUS API to cron would be achievable, but harder work without an XML backend).

Similarly, a crontab interface to alarmd would also be achievable (but for very little benefit).

Lord Raiden 2008-12-20 15:18

Re: edit cron on OS2008?
 
Really, I wouldn't care if cron didn't wake up the device. My goal is to write a script that helps me track a stolen nokia tablet every time it goes onto wifi. Eventually at some point, the thief *will* take it online, and when they do, I'll have their info. The catch is that the script needs to be set to run every xx number of minutes. Hence my preference to using cron. Although since there's no cron, alarmd will do.

GeneralAntilles 2008-12-20 16:20

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 251151)
Really, I wouldn't care if cron didn't wake up the device. My goal is to write a script that helps me track a stolen nokia tablet every time it goes onto wifi. Eventually at some point, the thief *will* take it online, and when they do, I'll have their info. The catch is that the script needs to be set to run every xx number of minutes. Hence my preference to using cron. Although since there's no cron, alarmd will do.

If you're waiting for them to go online, why cron/alarmd? There's a DBus signal you can listen for when the tablet actually goes online. No random firing of scripts needed.

GeneralAntilles 2008-12-20 16:24

Re: edit cron on OS2008?
 
Really, though, isn't somebody already working on something like this? Why not throw in with them?

Lord Raiden 2008-12-20 22:47

Re: edit cron on OS2008?
 
Oh, they are? Well heck. If they're already doing this, that'll save me some work. :) Do you by chance know which project that would be?

GeneralAntilles 2008-12-20 23:19

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 251290)
Oh, they are? Well heck. If they're already doing this, that'll save me some work. :) Do you by chance know which project that would be?

Not offhand, but I can find it when I have some more time later tonight.

qwerty12 2008-12-20 23:21

Re: edit cron on OS2008?
 
https://garage.maemo.org/projects/phonehome

allnameswereout 2008-12-21 02:18

Re: edit cron on OS2008?
 
There is a shell script which also does this. Use the search to find it. Might be on ItT wiki too.

Jaffa 2008-12-21 09:30

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 251290)
Oh, they are? Well heck. If they're already doing this, that'll save me some work. :) Do you by chance know which project that would be?

A search for "stolen" shows up:

http://www.internettablettalk.com/fo...ad.php?t=24436
http://www.internettablettalk.com/fo...ad.php?t=21805
http://www.internettablettalk.com/fo...ad.php?t=20593

Lord Raiden 2008-12-21 19:14

Re: edit cron on OS2008?
 
Cool. The phonehome sounds like what I'm after. Any idea on when this project might go live? AKA, release a beta? I noticed it's still in alpha level development. :(

allnameswereout 2008-12-21 21:13

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 251501)
Cool. The phonehome sounds like what I'm after. Any idea on when this project might go live? AKA, release a beta? I noticed it's still in alpha level development. :(

It is available in extras-devel repository.

Jaffa 2008-12-22 07:53

Re: edit cron on OS2008?
 
Quote:

Originally Posted by Lord Raiden (Post 251501)
Cool. The phonehome sounds like what I'm after. Any idea on when this project might go live? AKA, release a beta? I noticed it's still in alpha level development. :(

Best suggestion: ask the developers (and, as allnameswereout says, try it ;-))


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

vBulletin® Version 3.8.8