Results 1 to 3 of 3
Discuss Running a shell script from Ipod Touch App at the iPhone Developer Exchange - Hackint0sh.org; I am wondering if it is possible to run a console script (.sh) from an ...
  1. #1
    Newbie Array

    Join Date
    Jun 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Running a shell script from Ipod Touch App

    I am wondering if it is possible to run a console script (.sh) from an iPhone App. The script is written to download a program from a repository that I set up, respring, then after a set time delete the program and respring again, so it needs root privileges, and is interactive in that the user can set how long the program will be kept. I have the bash script written, and it works fine when called from mobile terminal, but is there any way to do this from within a (jailbroken) app (without using mobile terminal / SSH / Bossprefs)? Or is there an overall better way to achieve this?
    Thanks



  2. #2
    Newbie Array

    Join Date
    Jan 2009
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    check out NSTask. and you might have to include the appropriate header file (NSTask.h)

  3. #3
    Rookie Array

    Join Date
    Jan 2009
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    You can use following command as well.

    Code:
    system("echo Hello World")

 

 

Similar Threads

  1. Run shell Script from Xcode
    By Mitali in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 09-16-2009, 11:15 AM
  2. Running a shell script from Ipod Touch App
    By rocomotion in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 06-24-2009, 07:25 PM
  3. MacNN: RebelTouch covers iPod touch in soft and hard shell
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 11-15-2008, 02:00 AM
  4. remove sms.db with shell script
    By simplyjustken in forum iPhone "2G" (Rev. 1)
    Replies: 23
    Last Post: 10-25-2007, 12:21 PM
  5. Question: Run shell script from an icon?
    By KennX in forum Free Toolchain Software (Cydia App's)
    Replies: 3
    Last Post: 08-11-2007, 11:13 PM

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 02:49 PM.
twitter, follow us!