Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.tcl



Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2010, 12:59 PM
bigbloke
Guest
 
Posts: n/a
Default delete of directory command - - -noob--

All, in my script I create a directory

'file mkdir $a_arg/tmp/matching_files_found'

towards the end of the code I want to delete/flush this directory.

clearly I found the mkdir command. But cant see a rmdir style one.

Have tried,

file delete ?-force? $a_arg/matching_files_found

with mixed results - seemed to work for a while then the directory
didnt delete after a while, could be me tho I guess.
Takers>?
Reply With Quote
Alt Today
Advertising
Google Adsense
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 02-10-2010, 01:22 PM
Jeremy
Guest
 
Posts: n/a
Default Re: delete of directory command - - -noob--

On Feb 10, 7:59*am, bigbloke <s.mcc...@ntlworld.com> wrote:
>
> file delete ?-force? $a_arg/matching_files_found
>
> with mixed results - seemed to work for a while then the directory
> didnt delete after a while, could be me tho I guess.
>


I use file delete -force to accomplish this task. The docs say: "Non-
empty directories will be removed only if the -force option is
specified". I have not had an issue. Now, it will NOT remove the
directory if it's in use and that can be as simple as being in the
directory in a shell or have an open file somewhere under the
directory. Are you sure that's not what was going on when you
experienced your error?

Jeremy

Reply With Quote
  #3 (permalink)  
Old 02-10-2010, 10:32 PM
Donald Arseneau
Guest
 
Posts: n/a
Default Re: delete of directory command - - -noob--

On Feb 10, 4:59*am, bigbloke <s.mcc...@ntlworld.com> wrote:

> file delete ?-force? $a_arg/matching_files_found


Did you try it like that, with the question marks???
They just indicate that -force is an optional parameter,
which you do want to use.
Reply With Quote
 
Reply

Popular Tags in the Forum
command, delete, directory, noob

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 5.41 How do I delete a directory tree? PerlFAQ Server Newsgroup comp.lang.perl.misc 3 12-30-2009 01:54 PM
insert to projection paul c Newsgroup comp.databases.theory 29 09-08-2009 01:39 PM
"PAK WEB PAGES" "PAK WEB SITES" "PAK WEB LINKS" "PAK TV LIVE" "PAKWEB" "PAK WEB DIRECTORY" "PAK WEB PAGES" ON www.pak-web-pages.blogspot.com nadia Newsgroup comp.lang.python 0 08-26-2009 01:20 PM
FAQ 5.41 How do I delete a directory tree? PerlFAQ Server Newsgroup comp.lang.perl.misc 2 07-18-2009 07:33 AM
FAQ 5.41 How do I delete a directory tree? PerlFAQ Server Newsgroup comp.lang.perl.misc 0 04-30-2009 02:03 PM



Language 1 | C | C++ | Php | Python | Lisp | Perl | Ruby | Java | Pascal | Basic | Language 2 | Databases | Oracle | Mysql | Access | Drupal
All times are GMT. The time now is 04:04 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.