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.
Old posts that have not been replied to for several years.
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Wed May 05, 2004 11:16 am
hmm how do i get a crc check of a file ??
XplaiN but think of me as stupid
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Wed May 05, 2004 11:47 am
Have you ever read "The Manual"?
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Thu May 06, 2004 4:26 pm
hmm ..
XplaiN but think of me as stupid
dollar
Op
Posts: 178 Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands
Post
by dollar » Fri May 07, 2004 2:31 am
Ofloo wrote: hmm ..
What an interesting post...?
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Fri May 07, 2004 5:26 pm
well no i was looking for a different way sinds this scripts takes 10 seconds to resolve the crc of a 15mb file ..
XplaiN but think of me as stupid
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Fri May 07, 2004 8:46 pm
Why don't you read the file and use eggdrop's md5 command?
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sat May 08, 2004 1:57 am
what do you mean ..? can u make a crc out of a md5 ..? but how do i get an md5 of a file ?? then ??
XplaiN but think of me as stupid
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Sat May 08, 2004 3:38 am
md5/sha are types of checksum algorithms (actually hash algorithms) which can be used instead of using crc checksum for whatever it is you are trying to do..
Doing this on a large file would probably take a bit longer as well via Tcl... However, most shell's provide the command "md5sum" which you can use to acquire the md5 checksum in a more timely manner.
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sat May 08, 2004 11:39 am
i know but it must be crc i wrote a tcl script to check sfv files .. on an ftpd ..
and i know this can be done like this but now i am curious .. how u use the eggdrops [md5 <string>] cmd for this ??
XplaiN but think of me as stupid
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Sat May 08, 2004 1:58 pm
You would have to read in the entire contents of the file, and then perform the md5 function on it....
If you "need" to use checksum, then shell's also provide the command "cksum" ...
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Sun May 09, 2004 9:20 am
it does ??
you are talking about he default md5 cmd on eggdrop right ??
md5 <string>
Returns: the 128 bit MD5 message-digest of the specified string
Module: core
can't say i can see anything like it on there either we are talking about 2 different things or the docu is outdated
[15:21] <Ofloo> .tcl cksum
[15:21] <debug> Tcl error: invalid command name "cksum"
XplaiN but think of me as stupid
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Sun May 09, 2004 12:44 pm
I said the "shell" provides a cksum command... Not Tcl....
(ie: .tcl exec cksum eggdrop)
KrzychuG
Master
Posts: 306 Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:
Post
by KrzychuG » Sun May 09, 2004 5:17 pm
md5 cmd in eggdrop created of MD5 message-digest of string, not an MD5 checksum of file!
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Sun May 09, 2004 6:06 pm
Which is why you'd read the contents of the file, and perform the operation on the contents.
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Mon May 10, 2004 9:49 pm
lmfao good point lol, hmm
tcl exec cksum eggdrop
the point of doing something in tcl is that it is entirely tcl no point using external programs well u can but then i wouldn't have to turn here :p and that would only be true on one operating system ..
i only use system programs if there is no otherway
XplaiN but think of me as stupid