<br><font size=2 face="sans-serif">Hi Vance,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your answer!</font>
<br>
<br><font size=2 face="sans-serif">Indeed by running:</font>
<br>
<br><font size=2 face="sans-serif"> run_erl
-daemon /tmp/my-pipe . "exec erl [...]"</font>
<br>
<br><font size=2 face="sans-serif">Then waiting for the pipes to be created,
then running:</font>
<br>
<br><font size=2 face="sans-serif"> echo
"my_module:my_function()." >> /tmp/my-pipe.w</font>
<br>
<br><font size=2 face="sans-serif">I could run a code that resists 'no_connection'
exceptions and does not need the user to type anything in the shell.</font>
<br>
<br><font size=2 face="sans-serif">Adding a "tail -f erlang.log.1"
pretty recreates what the 'init' module gives out-of-the-box (but with
an exception-safe VM).</font>
<br>
<br><font size=2 face="sans-serif">A minor question: in run-erl.log a line
tells "Client expected on FIFO /tmp/my-pipe.r, but can't open";
I assume this is not a real problem? </font>
<br><font size=2 face="sans-serif">I would have imagined that I could read
this pipe (with a tail or a cat) to monitor the program console outputs,
possibly instead of relying on erlang.log.1 for that. Maybe run_erl prevents
that. Actually a tee on this pipe could have been useful, as for longer
outputs the newer logs will be written in erlang.log.2, which makes a console
monitoring tricky ("tail -f erlang.log.1" having to become "tail
-f erlang.log.2" etc.)</font>
<br>
<br><font size=2 face="sans-serif">Thanks again,</font>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif"><br>
Olivier.<br>
---------------------------<br>
Olivier Boudeville<br>
<br>
EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart, France<br>
Département SINETICS, groupe ASICS (I2A), bureau B-226<br>
Office : +33 1 47 65 59 58 / Mobile : +33 6 16 83 37 22 / Fax : +33 1 47
65 27 13</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>vances@motivity.ca</b>
</font>
<p><font size=1 face="sans-serif">10/04/2013 11:34</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">olivier.boudeville@edf.fr</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">erlang-questions@erlang.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [erlang-questions] RE On node disconnections</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>On Wed, Apr 10, 2013 at 11:27:52AM +0200, Olivier
BOUDEVILLE wrote:<br>
} So: what could be the solution to run a VM as batch (without the
<br>
} interactive shell) while still being able to overcome errors (such
as <br>
} 'noconnection')?<br>
<br>
http://www.erlang.org/doc/embedded/users_guide.html<br>
http://www.erlang.org/doc/man/run_erl.html<br>
<br>
-- <br>
-Vance<br>
</font></tt>
<br><p></p>
<p><br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.</p>
<p>Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.</p>
<p>Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________</p>
<p>This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.</p>
<p>If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.</p>
<p>E-mail communication cannot be guaranteed to be timely secure, error or virus-free.</p>