+ Reply
Results 1 to 3 of 3

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Start a daemon

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
I am trying to install a python wiki http://jtauber.com/leonardo/ It is start by python test_server.py Can someone tell me how to start it? In terminal, it seems working, but when
...
  1. #1
    Green Apple
    Join Date
    Nov 2007
    Posts
    32
    Thanks
    0
    Thanked 1 Time in 1 Post
    Default Start a daemon
    I am trying to install a python wiki http://jtauber.com/leonardo/

    It is start by

    python test_server.py

    Can someone tell me how to start it? In terminal, it seems working, but when I switch to the browser, it gone.

    I have try putting & but it just work for a while, after a second or so, it gone again.

  2. #2
    Developer
    Join Date
    Jan 2008
    Posts
    16
    Thanks
    1
    Thanked 2 Times in 1 Post
    First of all - not sure if you're posting in the correct forum. This is for iPhone dev only. However, you may want to look at daemontools (http://cr.yp.to/daemontools.html). By switching to the browser if you mean you closed the terminal, yes the session and thus the apps running in that session will die.

  3. #3
    iPhone? More like MyPhone theguyz's Avatar
    Join Date
    Oct 2007
    Posts
    242
    Thanks
    6
    Thanked 20 Times in 19 Posts

    In terminal you could do a :

    nohup python test_server.py &

    and it will still run till next reboot of iphone or if script completes

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts