Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 20 Jun 2018, 15:53
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Check MD5 Sum the easy way
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
GeoW

Joined: 31 Dec 2007
Posts: 150
Location: New Jersey, USA ( East Coast )

PostPosted: Sun 14 Sep 2008, 19:26    Post subject:  

Yo Pizzasgood,

Thanks for your post. I often learn from reading what you write. and
this is no exception.

I have tested your script - it works beautifully. I will need to study it to
learn some new commands.

However - I like mine better - not for the reasons you stated:
scrolling and copy/paste. I like mine better for the following reason:

You seem to be using the standard philosophy of "do it and report".
I think, the first time I ran your script, I ended up with several
instances. The lack of any immediate response made me think my
mouse click had not been recognized.

My script immediately opens a window and lists the command being
executed. That way the user knows he has been heard, and knows
what he is waiting for.

I do not think it costs anything extra to do it this way.

By the way - when I first started using Puppy, I used to regularly get
several instances of help or seamonkey - maybe I need to work on
my patience.

To the rest of you:

Has anyone tried my script and liked it?
I had intended to add a useful feature -
not start a competition.


GeoW
Back to top
View user's profile Send private message 
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

PostPosted: Sun 14 Sep 2008, 20:11    Post subject:  

I liked the script. Smile
_________________

Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6266
Location: Knoxville, TN, USA

PostPosted: Sun 14 Sep 2008, 20:39    Post subject:  

Yep, mine calculates the sums first, then displays them. My computer is fast enough that doing that with a Puppy sized file only takes two and a half seconds or so. I mostly check smaller files though, like a 10 mb file, or a collection of ten files that are all in the sub-megabyte range. So for those it just pops up right away.

The main reasoning behind my method was to have a color signify success or failure. My eyes were very tired when I wrote that, between working a summer job involving mostly computer work, coming home and spending much time on the computer, and recently getting new glasses. I wanted something I could just glance at without having to focus or read.


I think it wouldn't be very hard to take your on-the-fly method and have it followed up by a big red or green "SUCCESS" or "ERROR" message.

Something like this:
Code:
md5sum -c "$1"
if [ $? = 0 ]; then
   echo -e '\033[1;32mSUCCESS\033[0m'
else
   echo -e '\033[1;32mERROR\033[0m'
fi



EDIT: I always set my terminals to be white text on a black background. I have no idea how this would look on Puppy's default black-on-white. Probably pretty nasty. It looks nice on a black background though.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 11193
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 14 Sep 2008, 23:49    Post subject:  

The nice thing about the gtkhash program that I posted links to on the page 1, Its quick and doesn't have any problems with large compressed files with lots folders/files in it.
I just tar.gz my Libs folder that I have on puppylinux.ca
extracted it was 870MB compressed it was 270mb with 2214 items in the Libs directory, I used the gtkhash program and 2 seconds later I had the md5 55e9ef9305c4d97b5d00cd20dce9af17
Pretty good and straight forward. Also you save the the md5 file output as text, under file/save
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
GeoW

Joined: 31 Dec 2007
Posts: 150
Location: New Jersey, USA ( East Coast )

PostPosted: Mon 15 Sep 2008, 16:21    Post subject: Updated With Pizzasgood's Suggestions  

Yo Pizzasgood,

I have updated my mimetypes and scripts in the top post to incorporate
all your suggested improvements. I needed to tinker a little to get the
"Error" to come out in red. I couldn't find documentation so I just poked
at numbers until I found the one that controlled the color.

Wolf Pup incorporated the changes into an updated .pet.

I have updated the url in the top post to point to the new .pet.

GeoW
Back to top
View user's profile Send private message 
GeoW

Joined: 31 Dec 2007
Posts: 150
Location: New Jersey, USA ( East Coast )

PostPosted: Tue 16 Sep 2008, 00:04    Post subject:  

Yo Wolf Pup,

Thank you for the positive feedback. I am currently over 560 views
but the positive feedback has been Lobster, Pizzasgood and you.

I think they are trying it, and I think they would complain if it did not
work as advertised. Still, it is a little unnerving.

Also, Wolf Pup, a very special thank you for turning these scripts and
mime types into .pets - allowing a five click installation.

GeoW
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6266
Location: Knoxville, TN, USA

PostPosted: Tue 16 Sep 2008, 15:02    Post subject:  

Quote:
I needed to tinker a little to get the
"Error" to come out in red. I couldn't find documentation so I just poked
at numbers until I found the one that controlled the color.
Ooops, sorry about that. I had the color worked out on my end, but I must have goofed up the copy-paste Laughing Actually, red was the first color I used, which I grabbed from something else I had. Then I fiddled to get the green.

FYI, changing the '1' in front to a '0' will either make it not-bold, or make it darker, depending on the terminal in use. For Puppy's Rxvt, the '1' does bold.

I can't remember what those are called, but I think they're usually documented in an appendix for Bash control characters or something. There's a bunch of other combinations to do things like clear the screen, move the cursor around, change the background color, make things blink, hide the cursor, etc.

I mostly just use them to make my '#' prompt a more interesting color by modifying the PS1 environment variable.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
dogle

Joined: 11 Oct 2007
Posts: 387

PostPosted: Thu 18 Sep 2008, 15:31    Post subject: Juicy Bone Award  

GeoW, WolfPup, this is a beauty - thanks so much.

I also had some probs to begin with, so may I suggest you make your instructions even clearer - edit "md5 file" to "md5.txt file" in the last line of the Howto proper, and if possible separate the current Howto from the historical text of your original post even more definitively. [Yes we really can be that stupid out here].

This is too good to miss, so maybe links on the manual/wiki would be appropriate.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0661s ][ Queries: 12 (0.0116s) ][ GZIP on ]