Re: how to delete folders from a perl agent

2008-08-28 Thread Jordi Moles Blanco
hi, thanks. i will try what you suggest and report back. thank you very much. En/na Nicholas Jones ha escrit: > Use capital R with rm that will remove folders that contain files. So > you would need something like: > `/bin/rm -Rf /home/` > > gl, > Nicholas Jones > > On Thu, Aug 28, 2008 at 4

Re: how to delete folders from a perl agent

2008-08-28 Thread Nicholas Jones
Use capital R with rm that will remove folders that contain files. So you would need something like: `/bin/rm -Rf /home/` gl, Nicholas Jones On Thu, Aug 28, 2008 at 4:20 AM, Jordi Moles Blanco <[EMAIL PROTECTED]> wrote: > hi, > > I'm extending snmp functionality through perl. > > I've got this i

how to delete folders from a perl agent

2008-08-28 Thread Jordi Moles Blanco
hi, I'm extending snmp functionality through perl. I've got this in the snmpd.conf ** pass.1.3.6.1.4.1.2021.255 /home/autom/agent.pl ** then I've got this in the agent.pl * $ruta = "/usr/home/".$parts[1]; `/bin/rm -rf $ruta`; system("/bin/rm -rf $ruta"