Results 1 to 5 of 5
Discuss script in Iphone at the Free Toolchain Software - Hackint0sh.org; Hello, I have write a small script a .sh file I satrt it in the ...
  1. #1
    Senior Professional Array

    Join Date
    Aug 2006
    Posts
    204
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    17

    Default script in Iphone

    Hello,

    I have write a small script a .sh file
    I satrt it in the phone using mobileterminal.
    My problem is that when I push the home butom to go in other app, the script stop working. I would like to have it still running when I go in other app.
    How can I do this, is there other way to have my small script running when I work on the Iphone. Maybe I must do something other than a script .sh ???
    Help is welcome.
    Thanks


  2. #2
    Senior Professional Array dogzilla's Avatar

    Join Date
    Aug 2007
    Location
    Boston
    Posts
    106
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    you need to put a "&" at the end of your script's name when you call it. This will dissociate it from your terminal session and it will run till it finishes, you restart or you kill it. So if your script's name is "foo.sh", you would type

    foo.sh &

    That space before the "&" is intentional. Be careful - if your script goes haywire you won't know unless you know about ps or top ( hint: try typing "man top" in mobileterminal)
    "Are you into S&M?"
    "Well...I'm a Red Sox fan. Does that count?"
    Go Sox!

  3. #3
    Senior Professional Array

    Join Date
    Aug 2006
    Posts
    204
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    17

    Default

    Really a big big thanks.
    Yes I know about ps and kill.
    Thanks very much

  4. #4
    Advanced Array

    Join Date
    Sep 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    You might need to use the unix command "nohup" It stops processes from being killed when a shell exits.

    Ex.

    nohup sh foo.sh &

    (that is, if nohup is installed on the iPhone. I'm not sure if its a shell command or an executable. Maybe it's part of csh? I don't remember....)

  5. #5
    Advanced Array

    Join Date
    Sep 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Ahhh... yes. There is a nohup command on the iPhone. Probably gets installed as part of the BSD subsystem.

    (If you want to know precisely what it does, check the man page on your Mac or Linux box)

    -vfxdude


 

 

Similar Threads

  1. Working dSniff script for iphone 3.0
    By fr0g in forum Free Toolchain Software
    Replies: 7
    Last Post: 09-16-2012, 02:16 AM
  2. iPhone icon for shell script?
    By mooselander in forum iPhone OS 3.x
    Replies: 0
    Last Post: 08-12-2009, 05:29 PM
  3. Wake iphone like MobileMail.app does? #Bash Script
    By katanapod in forum iPhone Developer Exchange
    Replies: 3
    Last Post: 05-26-2009, 04:29 PM
  4. [Release] XPwn Batch Script for iPhone 3G
    By rated-r in forum PwnageTool
    Replies: 0
    Last Post: 07-24-2008, 03:49 AM
  5. Replies: 2
    Last Post: 02-09-2008, 09:41 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 © 2013 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 07:14 PM.
twitter, follow us!