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.

crc check of a file..

Old posts that have not been replied to for several years.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

crc check of a file..

Post by Ofloo »

hmm how do i get a crc check of a file ??
XplaiN but think of me as stupid
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: crc check of a file..

Post by user »

Have you ever read "The Manual"?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

hmm ..
XplaiN but think of me as stupid
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

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
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

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
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Why don't you read the file and use eggdrop's md5 command?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

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
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

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
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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" ...
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

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
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

I said the "shell" provides a cksum command... Not Tcl....

(ie: .tcl exec cksum eggdrop)
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

md5 cmd in eggdrop created of MD5 message-digest of string, not an MD5 checksum of file!
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Which is why you'd read the contents of the file, and perform the operation on the contents.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

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
Locked