Script on startup

Discussion in 'iOS Development' started by giannaros, Jan 9, 2009.

  1. giannaros

    giannaros New Member

    Joined:
    Sep 1, 2008
    Messages:
    775
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    How can I make a script run on startup? The script is a simple .sh script.

    Thanks!

    Please Register or Log in to view images

  2. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    I'm not sure if this is correct but:

    You could make a LaunchDaemon in /System/Library/LaunchDaemons that runs your .sh script.
  3. giannaros

    giannaros New Member

    Joined:
    Sep 1, 2008
    Messages:
    775
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Thanks, but... How can I make launch deamons??? sorry

    Please Register or Log in to view images

  4. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Go to /System/Library/LaunchDaemons and open one of the .plist file's up and look at how it's structured.
  5. giannaros

    giannaros New Member

    Joined:
    Sep 1, 2008
    Messages:
    775
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I already did that... well, I suppose I'll just modify one of them. Thanks!!!

    Please Register or Log in to view images

  6. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    NO! Don't do that, you might mess up your iPod.
  7. giannaros

    giannaros New Member

    Joined:
    Sep 1, 2008
    Messages:
    775
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    No you didn't understand

    Please Register or Log in to view images

    I am going to copy paste one of them on my PC, modify it, then SSH it back. I'm not going to change the files already in there.

    Please Register or Log in to view images

  8. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    You might wanna be more clear next time. When you say "I'll just modify one" it sound like your just gonna open one up and change the text inside.

Share This Page