fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Can't figure out how to spawn process with local


From: Christian Vest Hansen
Subject: Re: [Fab-user] Can't figure out how to spawn process with local
Date: Sat, 19 Sep 2009 03:14:47 +0200

On Sat, Sep 19, 2009 at 1:11 AM, Taras Mankovski <address@hidden> wrote:
> Hey Guys,
> I'm trying to start google app engine's dev_runserver as a daemon.
> So I'm trying to do
> pid = local('./bin/dev_appserver --port=%s beecoop.com & '%(env.port))
> But when it gets to this line, it just sits there and waits.
> If I run this command in bash I get
> ./bin/dev_appserver --port=10500 beecoop.com &
> [1] 17095
> Can you please explain why it does this?

It's waiting for the exit code of the subprocess, in case it fails and
needs dealing with.

> and what how would I get it
> daemonize and move on?

I usually just daemonize fabric itself, but remember that nothing is
stopping you from using the subprocess module directly.

> Thank you,
> Taras
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]