Re: Daemon call python program

Discussion in 'Python' started by §ä´M¦Û¤vªº¤@¤ù¤Ñ, Oct 12, 2009.

  1. ¡° ¤Þ­z¡mcommand (§ä´M¦Û¤vªº¤@¤ù¤Ñ)¡n¤§»Ê¨¥¡G
    : I have a daemon process which will call a python program.
    : What do I do if I want to dump the exception when the python program exist
    : by uncaught exception.
    : Thanks a lot!

    By the way, the python program is multi-thread

    --
    ¡°Post by command from 59-124-255-226.HINET-IP.
    ¦Ñ¹«ªº­»­»¨Å¹T¬}£»¹q¤l§G§iÄæ¨t²Î£»alexbbs.twbbs.org£»140.113.166.7
     
    §ä´M¦Û¤vªº¤@¤ù¤Ñ, Oct 12, 2009
    #1
    1. Advertising

  2. §ä´M¦Û¤vªº¤@¤ù¤Ñ

    Jorgen Grahn Guest

    On Mon, 2009-10-12, §ä´M¦Û¤vªº¤@¤ù¤Ñ wrote:
    > ?? ???z?mcommand (???M???v???@????)?n???????G
    > : I have a daemon process which will call a python program.
    > : What do I do if I want to dump the exception when the python program exist
    > : by uncaught exception.
    > : Thanks a lot!
    >
    > By the way, the python program is multi-thread


    It doesn't really matter if it's multi-threaded, or even that it is
    Python. You would have the same problem with any program which may
    print stuff to standard output or standard error, and/or exit.

    I think it depends completely on the design of your daemon, and why
    it calls another program. And what it does while that other program
    is running.

    inetd/xinetd on Unix is one example, but they feed the program's output
    (all of it, both standard output and standard error, IIRC) to the remote
    client. Same with CGI, I think.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .
     
    Jorgen Grahn, Oct 12, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Johny

    Python program as daemon?

    Johny, Jul 25, 2008, in forum: Python
    Replies:
    6
    Views:
    318
    James Harris
    Jul 28, 2008
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    477
    Jean-Paul Calderone
    Mar 20, 2009
  3. Floris Bruynooghe
    Replies:
    1
    Views:
    472
    Floris Bruynooghe
    Mar 24, 2009
  4. §ä´M¦Û¤vªº¤@¤ù¤Ñ

    Daemon call python program

    §ä´M¦Û¤vªº¤@¤ù¤Ñ, Oct 12, 2009, in forum: Python
    Replies:
    0
    Views:
    299
    §ä´M¦Û¤vªº¤@¤ù¤Ñ
    Oct 12, 2009
  5. Daemon Win32::Daemon;

    , Sep 7, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    274
Loading...

Share This Page