Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
Discuss [Cron] on the iPhone at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; [*]Where does it come from? I wrote it in response to this thread. It is ...
  1. #11
    Rookie Array

    Join Date
    Jul 2007
    Posts
    12
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    [*]Where does it come from?

    I wrote it in response to this thread. It is based upon other code I have had running for several months.
    [*]Any documentation around (other than -h)?

    No. What do you need?
    [*]How does it affect battery usage?

    Not at all. It is event driven based upon the iPhone's power management controller.
    [*]Are there any interval options?

    No but there could be. Really simple to add.
    [*]Does it really have to run in background?

    Yes it does as the power management call uses a callback (run at the time/date specified) to execute the command line.


  2. #12
    Advanced Array TheCondor's Avatar

    Join Date
    Mar 2008
    Location
    Italy - Toscana
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hello everybody! It's two days that i'm working on this project. It's not a bad idea to menage with launchd daemon for launch, for example the MobilePhone.app, every we power-on the iphone. Better is every the iphone exit from the sleep mode .
    I had create the .plist file in OSX with Lingon and i put it /Library/LaunchAgents but when I try to load it with ' launchctl load /Library/LaunchAgents/com.root.phone.plist ' it doesn't answer with any error but when i make a ' launchctl list' it doesn't loaded '.
    Anyway i think it's better around launchctl instead the cron daemon.
    Iphone 1.0.2 OTB @ 1.1.4

    Macbook 2,2ghz - 4Gb Ram - 250Gb HDD

  3. #13
    Rookie Array

    Join Date
    Jul 2007
    Posts
    12
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Post your plist. There must be an error in it.

    Quote Originally Posted by TheCondor View Post
    Hello everybody! It's two days that i'm working on this project. It's not a bad idea to menage with launchd daemon for launch, for example the MobilePhone.app, every we power-on the iphone. Better is every the iphone exit from the sleep mode .
    I had create the .plist file in OSX with Lingon and i put it /Library/LaunchAgents but when I try to load it with ' launchctl load /Library/LaunchAgents/com.root.phone.plist ' it doesn't answer with any error but when i make a ' launchctl list' it doesn't loaded '.
    Anyway i think it's better around launchctl instead the cron daemon.

  4. #14
    Advanced Array TheCondor's Avatar

    Join Date
    Mar 2008
    Location
    Italy - Toscana
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    This is the dump of the .plist file, it's very simple for test the funcionality of launchd...



    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>com.root.phone</string>
    <key>ProgramArguments</key>
    <array>
    <string>/Applications/MobilePhone.app</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    Iphone 1.0.2 OTB @ 1.1.4

    Macbook 2,2ghz - 4Gb Ram - 250Gb HDD

  5. #15
    Advanced Array TheCondor's Avatar

    Join Date
    Mar 2008
    Location
    Italy - Toscana
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    anybody can help us?
    Iphone 1.0.2 OTB @ 1.1.4

    Macbook 2,2ghz - 4Gb Ram - 250Gb HDD


  6. #16
    Newbie Array

    Join Date
    Mar 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by freedom View Post
    I wrote it in response to this thread. It is based upon other code I have had running for several months.
    A very handy tool indeed. I'm trying to find a workable solution for the "keep telling me audibly I missed an SMS or a phone call until I acknowledge it" problem. Seems like this tool you whipped up is a great step in that direction. If it either supported an interval specification, or a way to reschedule using a specification like +1m (as in, run again in one minute) instead of an absolute time specification, and then immediately put the phone back to sleep after running whatever command is specified.

    Basically, you need to write a cron clone that keeps running when the iPhone is sound asleep... Sounds easy, right? :-)

    I think it's time to see if I can get my hands on the SDK. I just got the iPhone, and I do so like to develop new toys, so I think it's time to find out how hard it is to write things for this creature.

  7. #17
    Advanced Array TheCondor's Avatar

    Join Date
    Mar 2008
    Location
    Italy - Toscana
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I had copied the com.apple.cron.plist that are contained into /System/Library/LaunchDaemons and i had change the program that it launch (cron) with apollo and it works!
    So when i load the plist in launchd apollo start but i can't return to my home.
    How we can tell him (to Launchd) that he must launch the com.apple.apollo.plist only when he come out from the sleep mode????
    Iphone 1.0.2 OTB @ 1.1.4

    Macbook 2,2ghz - 4Gb Ram - 250Gb HDD

  8. #18
    Advanced Array TheCondor's Avatar

    Join Date
    Mar 2008
    Location
    Italy - Toscana
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    for the MobilePhone application the things are differente. Because this program starts at boot by default, but it sleep all the time and attend for a wake-up (if it doesn't starts we can't receive any call ). So we must look for wake-up the dial part of the MobilePhone.app. Thanks.
    Iphone 1.0.2 OTB @ 1.1.4

    Macbook 2,2ghz - 4Gb Ram - 250Gb HDD

  9. #19
    Newbie Array

    Join Date
    Mar 2008
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Rootus View Post
    A very handy tool indeed. I'm trying to find a workable solution for the "keep telling me audibly I missed an SMS or a phone call until I acknowledge it" problem. Seems like this tool you whipped up is a great step in that direction. If it either supported an interval specification, or a way to reschedule using a specification like +1m (as in, run again in one minute) instead of an absolute time specification, and then immediately put the phone back to sleep after running whatever command is specified.

    Basically, you need to write a cron clone that keeps running when the iPhone is sound asleep... Sounds easy, right? :-)

    I think it's time to see if I can get my hands on the SDK. I just got the iPhone, and I do so like to develop new toys, so I think it's time to find out how hard it is to write things for this creature.

    If it would work every X minutes it should be great... I would use it with a modified SMSnotifier script to check SMS and Missed calls and do what it has to do too :-D

  10. #20
    Newbie Array

    Join Date
    May 2006
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I tried to put the Schedule in a shell script that re-schedule it in 15 minutes intervals, it works good but in 2-3 hours it stop working. Somebody has any idea?
    This is the script:

    #script.sh
    #-----------------------------------------------------
    current_time=`date +%s`

    check_interval=900
    (( next_check = $current_time + $check_interval ))

    date_string=`date -r $next_check "+-H %H -m %M -M %m -D %d -Y %Y"`

    date >> dates.txt &

    ./Schedule $date_string -C ./script.sh >> Schedule.log&


 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. what does com.apple.cron for?
    By wei803 in forum General
    Replies: 0
    Last Post: 10-25-2007, 11:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 05:53 AM.
twitter, follow us!