<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Use fork() para fazer isso. Assim você vai ter controle maior sobre o processo filho. A menos que você realmente precisa rodar esse programa gpend (não conheço) você pode fazer assim.<br><br>Como de praxe, se você mandar algum trecho de código a gente vai achar mais fácil te ajudar.<br><br>Abraços,<br><div>&nbsp;</div>Alceu Rodrigues de Freitas Junior<br>--------------------------------------<br>glasswalk3r@yahoo.com.br<br>---<br>A well-used door needs no oil on its hinges.<br>A swift-flowing stream does not grow stagnant.<br>Neither sound nor thoughts can travel through a vacuum.<br>Software rots if not used.<br>These are great mysteries -- The Tao Of Programming, 5.1<div><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div
 style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">De:</span></b> Patty Silva &lt;ptfzs@yahoo.com.br&gt;<br><b><span style="font-weight: bold;">Para:</span></b> Cascavel Perl Mongers &lt;cascavel-pm@pm.org&gt;<br><b><span style="font-weight: bold;">Enviadas:</span></b> Quinta-feira, 24 de Junho de 2010 11:34:37<br><b><span style="font-weight: bold;">Assunto:</span></b> [Cascavel-pm] Comando system<br></font><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Olá Pessoal.<br>Uma duvida,<br>Estou usando o comando system para executar um outro script, porem ao terminar de executar esse script eu preciso dar um comando "gend" para "matar" os processos que ele gera.<br>So que com o comando system eu nao consigo usar o comando gpend . Ele nao "mata" os outros
 processos. Isso pq o system roda como se fosse em shell "diferente". Bom +- isso! :D<br>Qual a solucao?? Alguem sugere algo!! ?? :)<br><br>Obrigada<br><br><div><br></div>
</div><br>



      &nbsp;</div></div></blockquote>
</div><br>



      &nbsp;</body></html>