maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Prey (anti-theft) for N900 (https://talk.maemo.org/showthread.php?t=73725)

Marcus 2011-09-16 13:07

Re: [Announce] Prey (anti-theft) for N900
 
What does your crontab -l return?

Mitrigol 2011-09-16 13:30

Re: [Announce] Prey (anti-theft) for N900
 
fcrontab -l gives:

*/20 * * * * /usr/share/prey/prey.sh > /var/log/prey.log

But i have a question. Does it should send a report even when the phone is idle? Or does it need the phone to be used for at least 20 minutes before it will send a report?

Because yesterday in evening, while i was going home, it created a report by itself... I was not able to reproduce that so i don't understand.

thanks for your help

Marcus 2011-09-19 08:03

Re: [Announce] Prey (anti-theft) for N900
 
Do you have an active internet connection?

I have not tried it with 3G etc., so that might be a problem.

Mitrigol 2011-09-19 08:17

Re: [Announce] Prey (anti-theft) for N900
 
Yes i have an active connection, but i never use wifi, i am always connected via 2/3g.

My connection stays up as long as i don't disconnect it manually.

Lovsan 2011-12-30 13:07

Re: [Announce] Prey (anti-theft) for N900
 
hmm, im trying to get this to run in N9

are any of the required Dependencies in n9 By Default?

im getting these errors when trying to run the prey.sh

line161, shopt not found /opt/share/prey/core/setup

Code:

set_aliases(){
        shopt -s expand_aliases
        alias getter="curl $curl_options -s \"$user_agent\""
        alias mailsender="sendEmail"
}

so i suppose that some curl stuff is missing.

line78, Syntax error: Bad Substitution /opt/share/prey/core/functions

Code:

]get_var(){
        HASH="$1[*]"
        local ${!HASH} - line78
        eval 'echo ${'"${2}"'}'
}


Marcus 2011-12-31 11:09

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Lovsan (Post 1143460)
hmm, im trying to get this to run in N9

are any of the required Dependencies in n9 By Default?

im getting these errors when trying to run the prey.sh

line161, shopt not found /opt/share/prey/core/setup

Code:

set_aliases(){
        shopt -s expand_aliases
        alias getter="curl $curl_options -s \"$user_agent\""
        alias mailsender="sendEmail"
}

so i suppose that some curl stuff is missing.

line78, Syntax error: Bad Substitution /opt/share/prey/core/functions

Code:

]get_var(){
        HASH="$1[*]"
        local ${!HASH} - line78
        eval 'echo ${'"${2}"'}'
}


I'm afraid that I do not have any access to a N9, so I can't help you out there buddy - but yes, seems that shopt is missing.

After new years eve, I'll most likely optimize all of this, to see what I can do better.

Lovsan 2011-12-31 11:51

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by Marcus (Post 1143833)
I'm afraid that I do not have any access to a N9, so I can't help you out there buddy - but yes, seems that shopt is missing.

After new years eve, I'll most likely optimize all of this, to see what I can do better.

cheers, it would be great if this was ported to n9 and well, working version for n900 also.

maybe great simple gui for the Settings so its easier for novices like me :D

1 of Prey devs said that if this project gets started they are willing to help, will see about it but hopefully.

:cool:

nicholes 2011-12-31 13:52

Re: [Announce] Prey (anti-theft) for N900
 
can i use both SMSCON and prey??? can they confilct each other?

Marcus 2012-01-01 18:06

Re: [Announce] Prey (anti-theft) for N900
 
Quote:

Originally Posted by nicholes (Post 1143898)
can i use both SMSCON and prey??? can they confilct each other?

I don't see how they would conflict, so yes you can.

isfr21 2012-01-03 19:14

Re: [Announce] Prey (anti-theft) for N900
 
+1 for porting this to the N9.


All times are GMT. The time now is 02:22.

vBulletin® Version 3.8.8