Re: rmdir

2011-06-28 Thread Irfan Sayed
Awsome!!! this works fine . Rob you rock thanks a lot. --irfan From: Rob Dixon To: Perl Beginners Cc: Irfan Sayed Sent: Monday, June 27, 2011 11:54 PM Subject: Re: rmdir On 24/06/2011 10:43, Irfan Sayed wrote: > > i need to delete some direc

Re: rmdir

2011-06-27 Thread Rob Dixon
On 24/06/2011 10:43, Irfan Sayed wrote: > > i need to delete some directories recursively which are present at > some shared location > > i tried file::path perl module but the issue with that module is , it > is not deleting the root/parent dir > > it deletes the subdirectories and all the file

RE: rmdir

2011-06-27 Thread Ken Slater
> From: Irfan Sayed > To: Perl Beginners > Sent: Friday, June 24, 2011 3:13 PM > Subject: rmdir > > hi, > i need to delete some directories recursively which are present at some > shared location > > i tried file::path perl module but the issue with that module is , it > is not deleting the roo

Re: rmdir

2011-06-27 Thread Ron Bergin
es are getting deleted and not empty folders > > plz suggest > > > > > > From: Ron Bergin > To: Irfan Sayed > Cc: Shlomi Fish ; "pa...@laposte.net" > ; Perl Beginners > Sent: Monday, June 27, 2011 8:39 PM > Subject:

Re: rmdir

2011-06-27 Thread Irfan Sayed
est From: Ron Bergin To: Irfan Sayed Cc: Shlomi Fish ; "pa...@laposte.net" ; Perl Beginners Sent: Monday, June 27, 2011 8:39 PM Subject: Re: rmdir Irfan Sayed wrote: > even i tried windows del command > but it prompts for confirmation to dele

RE: rmdir

2011-06-27 Thread Park, KwanSeon
? Thanks Kwan -Original Message- From: Ron Bergin [mailto:r...@i.frys.com] Sent: Monday, June 27, 2011 10:09 AM To: Irfan Sayed Cc: Shlomi Fish; pa...@laposte.net; Perl Beginners Subject: Re: rmdir Irfan Sayed wrote: > even i tried windows del command > but it prompts for confi

Re: rmdir

2011-06-27 Thread Ron Bergin
Irfan Sayed wrote: > even i tried windows del command > but it prompts for confirmation to delete the files > do u know how to suppress these prompts ? i did not find any switch which > allows you to suppress > > pls suggest. > > regards > irfan > You need to use the /s and /q and /f options. /

Re: rmdir

2011-06-27 Thread Irfan Sayed
nners@perl.org" Sent: Monday, June 27, 2011 7:22 PM Subject: Re: rmdir On Mon, Jun 27, 2011 at 3:49 PM, Irfan Sayed wrote: exactly. some of the files have set the attribute as read only > >and due to that module was unable to delete those > >is there any module which will chec

Re: rmdir

2011-06-27 Thread Shlomi Fish
', '-fr', $path); Regards, Shlomi Fish > > > > > Message du 27/06/11 14:23 > > De : "Shlomi Fish" > > A : pa...@laposte.net > > Copie à : "Irfan Sayed" , "Perl Beginners" > > Objet : Re: rmdir &g

Re: rmdir

2011-06-27 Thread Rob Coops
ttribute?? > > plz suggest > > --irfan > > > > > From: Shawn H Corey > To: beginners@perl.org > Sent: Monday, June 27, 2011 6:09 PM > Subject: Re: rmdir > > On 11-06-27 08:29 AM, Irfan Sayed wrote: > > even i tried win

Re: rmdir

2011-06-27 Thread Irfan Sayed
Corey To: beginners@perl.org Sent: Monday, June 27, 2011 6:09 PM Subject: Re: rmdir On 11-06-27 08:29 AM, Irfan Sayed wrote: > even i tried windows del command > but it prompts for confirmation to delete the files > do u know how to suppress these prompts ? i did not find any swi

Re: rmdir

2011-06-27 Thread Rob Coops
"execvp", which is more efficient. > > > > > > Message du 27/06/11 14:23 > > De : "Shlomi Fish" > > A : pa...@laposte.net > > Copie à : "Irfan Sayed" , "Perl Beginners" > > Objet : Re: rmdir > > > >

Re: rmdir

2011-06-27 Thread Shawn H Corey
On 11-06-27 08:29 AM, Irfan Sayed wrote: even i tried windows del command but it prompts for confirmation to delete the files do u know how to suppress these prompts ? i did not find any switch which allows you to suppress It sounds like some of the files or directories have their read-only b

Re: rmdir

2011-06-27 Thread pangj
" > A : pa...@laposte.net > Copie à : "Irfan Sayed" , "Perl Beginners" > Objet : Re: rmdir > > Hi Pangj, > > On Mon, 27 Jun 2011 14:07:51 +0100 > pa...@laposte.net wrote: > > > > > Won't system "rm -rf /path/to/dir"

Re: rmdir

2011-06-27 Thread Irfan Sayed
: Irfan Sayed ; Perl Beginners Sent: Monday, June 27, 2011 5:53 PM Subject: Re: rmdir Hi Pangj, On Mon, 27 Jun 2011 14:07:51 +0100 pa...@laposte.net wrote: > > Won't system "rm -rf /path/to/dir" just work for you? > 1. This is on Windows, so "rm" may not be avail

Re: rmdir

2011-06-27 Thread Shlomi Fish
Hi Irfan, On Mon, 27 Jun 2011 04:59:29 -0700 (PDT) Irfan Sayed wrote: > i did that but no luck > is there any another way ? What did you do? What did you try? What happened? Did you try using the error flags like I told you or perl -d? What happens when you are using them? Please copy and paste

Re: rmdir

2011-06-27 Thread Shlomi Fish
form of system: system("rm", "-fr", $path); With the string version, you're risking code injection: http://shlomif-tech.livejournal.com/35301.html Regards, Shlomi Fish > > > > Message du 27/06/11 13:59 > > De : "Irfan Sayed" > >

Re: rmdir

2011-06-27 Thread pangj
Won't system "rm -rf /path/to/dir" just work for you? > Message du 27/06/11 13:59 > De : "Irfan Sayed" > A : "Shlomi Fish" > Copie à : "Perl Beginners" > Objet : Re: rmdir > > i did

Re: rmdir

2011-06-27 Thread Irfan Sayed
i did that but no luck is there any another way ? regards irfan From: Shlomi Fish To: Irfan Sayed Cc: Perl Beginners Sent: Monday, June 27, 2011 5:05 PM Subject: Re: rmdir Shlomi Fish (shlo...@shlomifish.org) added themselves to your Guest List

Re: rmdir

2011-06-27 Thread Shlomi Fish
Hi Irfan, On Fri, 24 Jun 2011 02:43:34 -0700 (PDT) Irfan Sayed wrote: > > > hi, > i need to delete some directories recursively which are present at some > shared location > > i tried file::path perl module but the issue with that module is , it is not > deleting the root/parent dir > > it

Re: rmdir

2011-06-27 Thread Irfan Sayed
plz suggest . i am stuck From: Irfan Sayed To: Perl Beginners Sent: Friday, June 24, 2011 3:13 PM Subject: rmdir hi, i need to delete some directories recursively which are present at some shared location i tried file::path perl module but the issue with

Re: rmdir

2011-06-24 Thread Chris Charley
"Irfan Sayed" wrote in message news:1308908614.88998.yahoomail...@web125518.mail.ne1.yahoo.com... hi, i need to delete some directories recursively which are present at some shared location i tried file::path perl module but the issue with that module is , it is not deleting the root/p

Re: rmdir

2005-02-01 Thread Ing. Branislav Gerzo
Mariano Cunietti [MC], on Tuesday, February 01, 2005 at 16:19 (+0100) typed: MC> I was wondering if there is anybody who can show me the *correct* way to MC> use a fast pattern-search-and-assign. MC> I mean: I am extracting viertual aliases from a postfix config file: 1. you did not change subjec

Re: rmdir

2005-02-01 Thread Mariano Cunietti
Hi, I was wondering if there is anybody who can show me the *correct* way to use a fast pattern-search-and-assign. I mean: I am extracting viertual aliases from a postfix config file: # cannot use 'split' function, some statements in the second field may contain whitespaces (e.g. ERROR "blah blah

Re: rmdir

2005-02-01 Thread Ing. Branislav Gerzo
[EMAIL PROTECTED] [d], on Tuesday, February 1, 2005 at 09:58 (-0500) thinks about: d> I want to delete the files from a directory then delete the directory. use File::Path; $remove = 'C:\temp'; rmtree($remove) if -e $remove; more @ http://search.cpan.org/~nwclark/perl-5.8.6/lib/File/Path.pm --

Re: rmdir

2001-06-26 Thread Maxim Berlin
Hello Chris, Tuesday, June 26, 2001, Porter, Chris <[EMAIL PROTECTED]> wrote: PC> Hi, was hoping someone could help. PC> I want to remove some directories: PC> .Any help would be greatly appreciated. PC> Basically, I want to remove all directories with Capital letters in this PC> directory. Mak