<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Mas em algum local deve haver referencia a qual 
shell executar.</FONT></DIV>
<DIV><FONT face=Arial size=2>Senão, como o Perl sabe qual shell chamar 
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=wendelscardua@gmail.com href="mailto:wendelscardua@gmail.com">Wendel 
  Scardua</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=agnaldo@starweb-software.com.br 
  href="mailto:agnaldo@starweb-software.com.br">Agnaldo Macedo</A> ; <A 
  title=cascavel-pm@pm.org href="mailto:cascavel-pm@pm.org">Cascavel Perl 
  Mongers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 28, 2006 5:10 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cascavel-pm] system</DIV>
  <DIV><BR></DIV>perldoc -f system<BR><BR>Aparentemente, ele não envolve o shell 
  em momento algum...<BR><SPAN 
  style="FONT-FAMILY: courier new,monospace">system("meuprogramafavorito"); 
  </SPAN><BR><BR>faz um fork+exec mesmo, executando diretamente o <SPAN 
  style="FONT-FAMILY: courier new,monospace">meuprogramafavorito</SPAN>.<BR><BR>Mas, 
  se você passar algum parâmetro especial pro programa, aí sim ele pode decidir 
  executar através<BR>
  <DIV><SPAN class=gmail_quote>do shell: <BR><BR><SPAN 
  style="FONT-FAMILY: courier new,monospace">system("programa *.txt")</SPAN> 
  deve chamar /bin/sh -c , no linux pelo menos, pra executar o 
  programa.<BR><BR>Neste caso a documentação não menciona a possibilidade de 
  escolher shells alternativos. <BR><BR>On 11/28/06, <B 
  class=gmail_sendername>Agnaldo Macedo</B> &lt;<A 
  href="mailto:agnaldo@starweb-software.com.br">agnaldo@starweb-software.com.br</A>&gt; 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Pessoal, 
    a instrução system faz uma chamada ao sistema operacional para<BR>abrir um 
    programa.<BR>por exemplo:<BR>system('teste')<BR><BR>Ele repassa o controle 
    para o shell do sistema operacional e esse abre o<BR>dito cujo do teste. 
    <BR><BR>Existe alguma maneira de informar ao Perl, no caso, ao system, qual 
    shell do<BR>sistema operacional ele deve usar.<BR>Ou seja, se ele deve usar 
    cme.exe ou outro, no caso do Windows.<BR>Ou, no Linux, se ele deve usar bash 
    ou outro. 
    <BR><BR>_______________________________________________<BR>Cascavel-pm 
    mailing list<BR><A 
    href="mailto:Cascavel-pm@pm.org">Cascavel-pm@pm.org</A><BR><A 
    href="http://mail.pm.org/mailman/listinfo/cascavel-pm">http://mail.pm.org/mailman/listinfo/cascavel-pm 
    </A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- 
  <BR>[]s<BR>Wendel<BR><BR>"Não ajustar o auto-ajuste" - <A 
  href="http://wendel.scardua.net/">http://wendel.scardua.net/</A> 
</BLOCKQUOTE></BODY></HTML>