<br><br><div class="gmail_quote">2009/7/15 Miguel Enrique Cobá Martinez <span dir="ltr">&lt;<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.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;">
El mié, 15-07-2009 a las 21:20 -0300, Mariano Martinez Peck escribió:<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;         El mié, 15-07-2009 a las 17:57 -0300, Germán Arduino escribió:<br>
&gt;         &gt; Tried, but don&#39;t works.<br>
&gt;         &gt;<br>
&gt;         &gt; I got the same error.<br>
&gt;         &gt;<br>
&gt;<br>
&gt;<br>
&gt;         I use this script to start a magma image an serveral seaside<br>
&gt;         images:<br>
&gt;<br>
&gt;         #!/bin/sh<br>
&gt;<br>
&gt;         NOHUP=&quot;/usr/bin/nohup&quot;<br>
&gt;         SQUEAK_VM=&quot;/usr/bin/squeakvm&quot;<br>
&gt;         SQUEAK_OPTS=&quot;-mmap 100m -vm-sound-null -vm-display-X11<br>
&gt;         -headless&quot;<br>
&gt;         SQUEAK=&quot;$SQUEAK_VM $SQUEAK_OPTS&quot;<br>
&gt;         IMAGES_HOME=&quot;/home/miguel/squeak/images/azteca&quot;<br>
&gt;         SCRIPTS_HOME=&quot;/home/miguel/squeak/scripts/azteca&quot;<br>
&gt;         LOGS_HOME=&quot;/home/miguel/squeak/logs/azteca&quot;<br>
&gt;         START_PORT=8080<br>
&gt;         END_PORT=8093<br>
&gt;<br>
&gt;<br>
&gt;         # Start the Magma image<br>
&gt;         echo &quot;Starting Magma image&quot;<br>
&gt;         $NOHUP $SQUEAK $IMAGES_HOME/magma.image $SCRIPTS_HOME/<a href="http://magma.st" target="_blank">magma.st</a><br>
&gt;         &gt;&gt;<br>
&gt;         $LOGS_HOME/magma.nohup &amp;<br>
&gt;<br>
&gt;         # Start the Seaside images<br>
&gt;         for PORT in `seq $START_PORT $END_PORT`; do<br>
&gt;          echo &quot;Starting Seaside image on port: $port&quot;<br>
&gt;          $NOHUP $SQUEAK $IMAGES_HOME/seaside.image<br>
&gt;         $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a><br>
&gt;<br>
&gt; Nice script!!!  I will base my future ones on this :)<br>
&gt;<br>
&gt; What I don&#39;t understand here is which type of scripts you send as<br>
&gt; parameters to squeakVM. Scripts to the VM ?? Can you show me some<br>
&gt; examples of  what you have in $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a> ??<br>
&gt;<br>
<br>
</div></div>Yes you can have here anything that you can put in a workspace.<br>
I learned this from Ramon Leon, in the post about scaling seaside with<br>
apache, but in the end I didn&#39;t use (I mean the seaside scaling à la<br>
dabbledb/ramonleon) because I used lighttpd and a fixed set of images:<br>
<br>
This is my <a href="http://seaside.st" target="_blank">seaside.st</a>, again, stolen from Ramon&#39;s blog (thanks Ramon :)<br>
[<br>
  [<br>
    [ 60 seconds asDelay wait.<br>
      (FileDirectory default fileOrDirectoryExists:<br>
&#39;/home/miguel/proyectos/azteca/scripts/shutdown.seaside&#39;)<br>
        ifTrue: [ SmalltalkImage current snapshot: false andQuit: true ]<br>
    ] on: Error do: [ :error | error asDebugEmail ]<br>
  ] repeat<br>
] forkAt: Processor systemBackgroundPriority.<br>
Project uiProcess suspend.<br>
<br>
and what it does is to check every 60 seconds for the existance of a<br>
file and if exists, just shutdown without saving. This way I can stop my<br>
farm of seaside images. Enjoy.</blockquote><div><br>Wow! awesome<br><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 class="im"><br>
&gt;<br>
&gt;         port $PORT &gt;&gt; $LOGS_HOME/seaside.nohup &amp;<br>
&gt;<br>
&gt; What does this line do?<br>
&gt;<br>
<br>
</div>I start the images with the command nohup from unix/linux that makes a<br>
process to continue living even if you logout the session (otherwise all<br>
your jobs/proccess are killed on logout because are children of the<br>
session process). </blockquote><div><br>yep<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The command it is everything after the nohup. The &amp;<br>

puts the proccess in background and the &gt;&gt; redirects the output (errors)<br>
to a file for later reviewing.<br>
</blockquote><div><br><br>ahhhh it continues the last line!! now I get it. I thought it was a new line, thus I didn&#39;t know a command called &quot;port&quot; hahaa.<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>
&gt; Thanks!<br>
&gt;<br>
&gt; Mariano<br>
&gt;<br>
<br>
Saludos,<br>
<font color="#888888">Miguel Cobá<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt;         done<br>
&gt;<br>
&gt;<br>
&gt;         check the order of the parameters that stablish the port for<br>
&gt;         the seaside<br>
&gt;         image.<br>
&gt;<br>
&gt;<br>
&gt;         &gt; Cheers.<br>
&gt;         &gt; Germán.<br>
&gt;         &gt;<br>
&gt;         &gt; 2009/7/15, Philippe Marschall<br>
&gt;         &lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;:<br>
&gt;         &gt; &gt; 2009/7/14, Germán Arduino &lt;<a href="mailto:garduino@gmail.com">garduino@gmail.com</a>&gt;:<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; &gt; Hi:<br>
&gt;         &gt; &gt;  &gt;<br>
&gt;         &gt; &gt;  &gt; As far as I saw on some doc it&#39;s possible to start a<br>
&gt;         seaside image in<br>
&gt;         &gt; &gt;  &gt; the way: &quot;squeakvm seaside.image PORT nnnn&quot;. Then, as<br>
&gt;         WAKom check this<br>
&gt;         &gt; &gt;  &gt; parameter on its #startUp method, is posible to have it<br>
&gt;         running on the<br>
&gt;         &gt; &gt;  &gt; passed port.<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; Try:<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;  squeakvm seaside.image -- PORT nnnn<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt; Squeak is a bit peculiar when it comes to command line<br>
&gt;         arguments.<br>
&gt;         &gt; &gt;<br>
&gt;         &gt; &gt;  Cheers<br>
&gt;         &gt; &gt;  Philippe<br>
&gt;         &gt; &gt;  _______________________________________________<br>
&gt;         &gt; &gt;  seaside mailing list<br>
&gt;         &gt; &gt;  <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;         &gt; &gt;<br>
&gt;          <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;         &gt; &gt;<br>
&gt;         &gt; _______________________________________________<br>
&gt;         &gt; seaside mailing list<br>
&gt;         &gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;         &gt;<br>
&gt;         <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         seaside mailing list<br>
&gt;         <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt;         <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<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>