<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 5:25 PM, Philippe Marschall <span dir="ltr"><<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>></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 <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>>:<br>
<div><div></div><div class="h5">><br>
><br>
> 2009/7/15 Miguel Enrique Cobá Martinez <<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>><br>
>><br>
>> El mié, 15-07-2009 a las 17:57 -0300, Germán Arduino escribió:<br>
>> > Tried, but don't works.<br>
>> ><br>
>> > I got the same error.<br>
>> ><br>
>><br>
>> I use this script to start a magma image an serveral seaside images:<br>
>><br>
>> #!/bin/sh<br>
>><br>
>> NOHUP="/usr/bin/nohup"<br>
>> SQUEAK_VM="/usr/bin/squeakvm"<br>
>> SQUEAK_OPTS="-mmap 100m -vm-sound-null -vm-display-X11 -headless"<br>
>> SQUEAK="$SQUEAK_VM $SQUEAK_OPTS"<br>
>> IMAGES_HOME="/home/miguel/squeak/images/azteca"<br>
>> SCRIPTS_HOME="/home/miguel/squeak/scripts/azteca"<br>
>> LOGS_HOME="/home/miguel/squeak/logs/azteca"<br>
>> START_PORT=8080<br>
>> END_PORT=8093<br>
>><br>
>><br>
>> # Start the Magma image<br>
>> echo "Starting Magma image"<br>
>> $NOHUP $SQUEAK $IMAGES_HOME/magma.image $SCRIPTS_HOME/<a href="http://magma.st" target="_blank">magma.st</a> >><br>
>> $LOGS_HOME/magma.nohup &<br>
>><br>
>> # Start the Seaside images<br>
>> for PORT in `seq $START_PORT $END_PORT`; do<br>
>> echo "Starting Seaside image on port: $port"<br>
>> $NOHUP $SQUEAK $IMAGES_HOME/seaside.image $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a><br>
><br>
><br>
> Sorry for the offtopic, what I have a question: is there a simple way to<br>
> 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="/usr/bin/nohup"<br>
VM="/home/mariano/squeak/expury/build/squeak"<br># Para produccion, como no van a estar las X, tengo que poner el -vm-display-null<br>VM_PARAMS="-mmap 200m -vm-sound-null"<br>IMAGE="destinoMochila.image"<br>
<br>#start the vm<br>$NOHUP "$VM" $VM_PARAMS "$IMAGE" &<br><br><br>And I want to add a line/s at the end of this script that writes to a file called "destinoMochilaPID" 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>