<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 5:25 PM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/7/26 Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt;<br>
&gt;<br>
&gt; 2009/7/15 Miguel Enrique Cobá Martinez &lt;<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; El mié, 15-07-2009 a las 17:57 -0300, Germán Arduino escribió:<br>
&gt;&gt; &gt; Tried, but don&#39;t works.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I got the same error.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; I use this script to start a magma image an serveral seaside images:<br>
&gt;&gt;<br>
&gt;&gt; #!/bin/sh<br>
&gt;&gt;<br>
&gt;&gt; NOHUP=&quot;/usr/bin/nohup&quot;<br>
&gt;&gt; SQUEAK_VM=&quot;/usr/bin/squeakvm&quot;<br>
&gt;&gt; SQUEAK_OPTS=&quot;-mmap 100m -vm-sound-null -vm-display-X11 -headless&quot;<br>
&gt;&gt; SQUEAK=&quot;$SQUEAK_VM $SQUEAK_OPTS&quot;<br>
&gt;&gt; IMAGES_HOME=&quot;/home/miguel/squeak/images/azteca&quot;<br>
&gt;&gt; SCRIPTS_HOME=&quot;/home/miguel/squeak/scripts/azteca&quot;<br>
&gt;&gt; LOGS_HOME=&quot;/home/miguel/squeak/logs/azteca&quot;<br>
&gt;&gt; START_PORT=8080<br>
&gt;&gt; END_PORT=8093<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; # Start the Magma image<br>
&gt;&gt; echo &quot;Starting Magma image&quot;<br>
&gt;&gt; $NOHUP $SQUEAK $IMAGES_HOME/magma.image $SCRIPTS_HOME/<a href="http://magma.st" target="_blank">magma.st</a> &gt;&gt;<br>
&gt;&gt; $LOGS_HOME/magma.nohup &amp;<br>
&gt;&gt;<br>
&gt;&gt; # Start the Seaside images<br>
&gt;&gt; for PORT in `seq $START_PORT $END_PORT`; do<br>
&gt;&gt;  echo &quot;Starting Seaside image on port: $port&quot;<br>
&gt;&gt;  $NOHUP $SQUEAK $IMAGES_HOME/seaside.image $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a><br>
&gt;<br>
&gt;<br>
&gt; Sorry for the offtopic, what I have a question: is there a simple way to<br>
&gt; kill what you started with nohup?<br>
<br>
</div></div>Write the pid into a file?</blockquote><div><br>I am still newbie with *nix. How can I know the PID from a process I started from nohup? Suppose I have this script:<br><br>#!/bin/sh<br>#settings<br>NOHUP=&quot;/usr/bin/nohup&quot;<br>
VM=&quot;/home/mariano/squeak/expury/build/squeak&quot;<br># Para produccion, como no van a estar las X, tengo que poner el -vm-display-null<br>VM_PARAMS=&quot;-mmap 200m -vm-sound-null&quot;<br>IMAGE=&quot;destinoMochila.image&quot;<br>
<br>#start the vm<br>$NOHUP &quot;$VM&quot; $VM_PARAMS &quot;$IMAGE&quot; &amp;<br><br><br>And I want to add a line/s at the end of this script that writes to a file called &quot;destinoMochilaPID&quot; the PID of that SqueakVM. How can I do this ?<br>
<br>Thanks for the help!<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>
<div><div></div><div class="h5"><br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
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>