Re: Launching external programmes (solved)
Drew Csillag <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
There are a few things I've run into with respect to spawning
programs from SkunkWeb.
First, SkunkWeb blocks SIGTERM during the duration of the
request, so the following snippet will fix:
import signal_plus
signal_plus.unblockTERM()
As for things going to stdout of the server, the UNIX stdout (as
opposed to sys.stdout) is the stdout of the terminal that launched
the server. Now depending on what *that* is, may be your problem.
Traditionally, I usually start it with swmgr from /etc/rc.local, or a
regular login shell without redirection, but if you redirected
stdout/stderr to something else in the command where you start
skunkweb, say a network filesystem file where other machine is
unreachable, I could see this happening.
Cheers,
Drew
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click