Starting a process on the server

Discussion in 'PHP' started by peeps, Mar 10, 2007.

  1. #1
    I want to be able to start a console program on the computer running my WAMP server.
    I want the program to run and stay running on the machine not go away when the page is closed.
    I have tried system() and ecec() and have not been able to get them to work the way I want them to.
    Maybe I am calling them the wrong way. Does anyone have any other thoughts?
     
    peeps, Mar 10, 2007 IP
  2. aras

    aras Active Member

    Messages:
    533
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    # ./command &

    Puts the command background on the console running and makes the current terminal free. You can try that.
     
    aras, Mar 10, 2007 IP
  3. peeps

    peeps Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I'll give that a try, but I need something that will work both on Linux and Windows if possible.
     
    peeps, Mar 10, 2007 IP