This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
sKy
Op
Posts: 194 Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany
Post
by sKy » Thu Oct 04, 2007 12:37 pm
How can I delete a hole folder which is not empty?
Last edited by
sKy on Sat Oct 06, 2007 8:10 pm, edited 1 time in total.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu Oct 04, 2007 1:50 pm
Read the manpage on
file delete and it should be pretty obvious.
NML_375
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Sat Oct 06, 2007 10:43 am
sKy wrote: How can I delete a hole folder which is not empty?
you mean to delete the file in the shell, not via a script, right?
rm -rf {foldername}
sKy
Op
Posts: 194 Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany
Post
by sKy » Sat Oct 06, 2007 8:11 pm
It was file delete. Why this is now in shell & bouncer help? Nvm, issues is solved.
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Sat Oct 06, 2007 8:51 pm
sKy wrote: It was file delete. Why this is now in shell & bouncer help? Nvm, issues is solved.
It is here because it's nothing to do with eggdrop and all to do with knowing how to use your shell.
Your initial post:
How can I delete a hole folder which is not empty?
I suggest you visit the
Linux Command Directory .
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sun Oct 07, 2007 8:08 am
Emm.. Post said nothing 'bout shell, and since it was posted in in "Scripting Help", atleast to me it was quite obvious sKy was looking for some info on how to recursively remove a directory from within tcl .
I'm pretty much puzzled why it was moved here aswell...
Of course you could try to run the rm command using exec, but if you ask me, that'd be overkill since we already have the lovely file command in tcl...
NML_375