Message from discussion
managing OS processes
Received: by 10.204.149.210 with SMTP id u18mr2431729bkv.1.1338392957934;
Wed, 30 May 2012 08:49:17 -0700 (PDT)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.129.208 with SMTP id p16ls184572bks.7.gmail; Wed, 30 May
2012 08:49:17 -0700 (PDT)
Received: by 10.204.157.134 with SMTP id b6mr2429043bkx.5.1338392957330;
Wed, 30 May 2012 08:49:17 -0700 (PDT)
Received: by 10.204.157.134 with SMTP id b6mr2429042bkx.5.1338392957314;
Wed, 30 May 2012 08:49:17 -0700 (PDT)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
by gmr-mx.google.com with ESMTP id hy18si56124bkc.2.2012.05.30.08.49.17;
Wed, 30 May 2012 08:49:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
by hades.cslab.ericsson.net (Postfix) with ESMTP id 6E7FA5C133;
Wed, 30 May 2012 17:49:09 +0200 (CEST)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com
[209.85.216.46])
by hades.cslab.ericsson.net (Postfix) with ESMTP id 8B6A95C007
for <erlang-questi...@erlang.org>; Wed, 30 May 2012 17:49:06 +0200 (CEST)
Received: by qadb17 with SMTP id b17so1960189qad.19
for <erlang-questi...@erlang.org>; Wed, 30 May 2012 08:49:05 -0700 (PDT)
d=google.com; s=20120113;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:x-enigmail-version:content-type
:content-transfer-encoding:x-gm-message-state;
bh=6CICMLb9lrgo8BzJuXL8/yRZC/+UsQsZwAFYMB4rJfA=;
b=QYooitpk/rj9qGnnCKx+KqWP8pcq1tdMQJN9jJnT++7rUk/Uh19+v9/pGTKd6jY9B0
XhgP8uBW9OBZTGPtbjuFFMAmUnanlr31vgbMbz2BNOtqgwC2IgwYTptg58RzdEc//MkX
721yaxVNgA5c58VRVjEcW2RJhPRFkvm+L8DueC7IbW5fCWPmxKVVGtpOjJLcW5MAq6x1
VMSjqIeszq326mR6egXaGtR9MscANUKCPsdvBLs4hqfPoODFQa1gmgSuV1neBvC+F7Q2
ScPXB/2oZ0Jnsw7ZV3CBJFbZG+hj6JV5ZOBI4RoqAtk71l7TQTk90GedkjplqftdRGQy
jbXA==
Received: by 10.224.86.194 with SMTP id t2mr10832305qal.95.1338392945342;
Wed, 30 May 2012 08:49:05 -0700 (PDT)
Received: from [192.168.1.104] (ool-4350e1a0.dyn.optonline.net.
[67.80.225.160])
by mx.google.com with ESMTPS id dq7sm1272295qab.0.2012.05.30.08.49.03
(version=SSLv3 cipher=OTHER); Wed, 30 May 2012 08:49:04 -0700 (PDT)
Message-ID: <4FC64165.2000...@aleynikov.org>
Date: Wed, 30 May 2012 11:48:53 -0400
From: Serge Aleynikov <se...@aleynikov.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: erlang-questi...@erlang.org
References: <CAJNb-9pg8s5qJ3p-qzqSwhA47XycP+GfxCRNo0ELP0KENdu...@mail.gmail.com>
In-Reply-To: <CAJNb-9pg8s5qJ3p-qzqSwhA47XycP+GfxCRNo0ELP0KENdu...@mail.gmail.com>
X-Enigmail-Version: 1.4.1
X-Gm-Message-State: ALoCoQlYzql4lHveEkCGS0dt4/0dby4s6/cSUgx/pja9mEuUqERoecOFJ5+tUr4gXReInGfMbovh
Subject: Re: [erlang-questions] managing OS processes
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
<mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
<mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org
Take a look at erlexec:
http://code.google.com/p/erlexec/
I believe it does exactly what you need.
On 5/26/2012 5:06 AM, Benoit Chesneau wrote:
> I'm trying to find a way to manage some os processes launched from
> Erlang. For example I need to relaunch them when the external process
> die for an unknown reason or send an HUP signal or just stop the
> external process.
> =
> For now I'm using erlang ports to open an external process and detect
> when it die. I also send signals using the `os:cmd` and and always
> send a SIGKILL signal using the `os:cmd`before closing the port. But
> is there a better way to do that? Maybe a module somewhere ? I saw
> erlexec [1] but it doesn't seem to be maintained since a while.
> =
> =
> - beno=EEt
> =
> =
> [1] http://code.google.com/p/erlexec/
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions