Loading ...
Sorry, an error occurred while loading the content.

construct service

Expand Messages
  • amir sarbazi
    hi all i need to make a service in linux to run a program in background. (this program is a single file and written by php not web application and i can run
    Message 1 of 3 , Jun 1, 2007
    • 0 Attachment
      hi all

      i need to make a service in linux to run a program in
      background.
      (this program is a single file and written by php
      "not web application" and i can run it by:
      /usr/local/bin/php -q /<path of file>
      )
      but this file is a engine that should run every time
      in background.
      may you help me please?

      best regards



      ____________________________________________________________________________________
      No need to miss a message. Get email on-the-go
      with Yahoo! Mail for Mobile. Get started.
      http://mobile.yahoo.com/mail
    • Philip Tellis
      ... if you want to run something in the background, just add & to the end of the commandline. eg: ./foo.php &
      Message 2 of 3 , Jun 2, 2007
      • 0 Attachment
        Sometime on Jun 1, amir sarbazi assembled some asciibets to say:

        > i need to make a service in linux to run a program in
        > background.

        if you want to run something in the background, just add & to the end of
        the commandline.

        eg:

        ./foo.php &
      • csant31@aim.com
        ... of ... iAnd if you want it as a service you may daemon-ize the program. See http://www.google.co.in/search?q=php+daemon
        Message 3 of 3 , Jun 3, 2007
        • 0 Attachment
          > Sometime on Jun 1, amir sarbazi assembled some asciibets to say:
          >> i need to make a service in linux to run a program in
          >> background.
          >
          >if you want to run something in the background, just add & to the end
          of
          >
          >the commandline.
          >
          >eg:
          >
          >./foo.php &

          iAnd if you want it as a "service" you may daemon-ize the program. See
          http://www.google.co.in/search?q=php+daemon
          http://www.phpclasses.org/browse/file/8958.html
          ________________________________________________________________________
          Check Out the new free AIM(R) Mail -- 2 GB of storage and
          industry-leading spam and email virus protection.
        Your message has been successfully submitted and would be delivered to recipients shortly.