<br><br><div class="gmail_quote">2009/7/26 Randal L. Schwartz <span dir="ltr">&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&gt;&gt;&gt; &quot;Miguel&quot; == Miguel Enrique Cobá Martinez &lt;<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>&gt; writes:<br>
<br>
Miguel&gt; miguel@laptop:~$ kill -9 `cat evince.pid `<br>
<br>
No no no.  Don&#39;t use kill -9.<br>
<br>
It doesn&#39;t give the process a chance to cleanly:<br>
<br>
1) release IPC resources (shared memory, semaphores, message queues)<br>
<br>
2) clean up temp files<br>
<br>
3) inform its children that it is going away<br>
<br>
4) reset its terminal characteristics<br>
<br>
and so on and so on and so on.<br>
<br>
Generally, send 15 (SIGTERM), and wait a second or two, and if that<br>
doesn&#39;t work, send 2 (SIGINT), and if that doesn&#39;t work, send 1<br>
(SIGHUP).  If that doesn&#39;t, REMOVE THE BINARY because the program is<br>
badly behaved!<br>
</blockquote><div><br>Ok.....but how can I do this from a script ?<br><br>Thanks!<br><br>Mariano<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Don&#39;t use kill -9.  Don&#39;t bring out the combine harvester just to tidy<br>
up the flower pot.<br>
<div class="im"><br>
<br>
--<br>
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095<br>
&lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt; &lt;URL:<a href="http://www.stonehenge.com/merlyn/" target="_blank">http://www.stonehenge.com/merlyn/</a>&gt;<br>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.<br>
See <a href="http://methodsandmessages.vox.com/" target="_blank">http://methodsandmessages.vox.com/</a> for Smalltalk and Seaside discussion<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>