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.

Compressing files

Help for those learning Tcl or writing their own scripts.
Post Reply
r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

Compressing files

Post by ryal »

Hi!
I would like my bot to compress a directory (containing sub dirs and files, but its like a few kilos only) and then sending it
Is that doable?
When i use the compressfile function it says it needs a file
Is that possible to compress a directory?
Thx in advance
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

nope

the easiest way to accomplish that is:

Code: Select all

exec tar zcf dir.tgz .
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

Post by ryal »

thx a bunch!
i tried this exec cmd, i didnt know we could execute external progs in an eggdrop
comes in handy!
Post Reply