<!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.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Dá uma olhada também nas permissões.</FONT></DIV>
<DIV><FONT face=Arial size=2>Salvo se você tiver outras configurações, se você 
esta rodando via browser (web) é provavel que esteja atrelado às permissões do 
usuário da web, nobody, www, etc. para Apache sobre Unix/Linux ou IUSR_máquina 
para IIS sobre Windows.</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=rafamv1@ig.com.br href="mailto:rafamv1@ig.com.br">Rafael Lebrao 
  Martins</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=cascavel-pm@pm.org 
  href="mailto:cascavel-pm@pm.org">cascavel-pm@pm.org</A></DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 04, 2008 9:37 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Cascavel-pm] Remover 
  diretórios</DIV>
  <DIV><BR></DIV>
  <DIV>Bom dia, pessoal. Estou tentando remover algumas pastas que estão num 
  diretório principal, usando o código abaixo:</DIV>
  <P><BR>use CGI qw ( :standard );<BR>use warnings;<BR>use strict;</P>
  <P>my @clear = param ( "limparlog" );</P>
  <P>my $dir = "/var/imm/chats/";<BR>opendir (MSN, $dir);<BR>my @diretorio = 
  readdir (MSN);<BR>close (MSN);</P>
  <P>my $usuario;<BR>foreach $usuario (@clear) {<BR>rmdir 
  ("$dir/$usuario");<BR>}</P>
  <DIV><FONT color=#888888>O código não dá erro, no entanto, não exclui nenhum 
  diretório.. Há alguma coisa errada nessa "bomba" acima..?</FONT></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cascavel-pm mailing 
  list<BR>Cascavel-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/cascavel-pm</BLOCKQUOTE></BODY></HTML>