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.

[solved]deleting directory?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

[solved]deleting directory?

Post by sKy »

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.
socketapi | Code less, create more.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Read the manpage on file delete and it should be pretty obvious.
NML_375
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: deleting directory?

Post by YooHoo »

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}
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

It was file delete. Why this is now in shell & bouncer help? Nvm, issues is solved.
socketapi | Code less, create more.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply