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 Thu 18 Dec 2014, 01:55
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to check md5sum using bash?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 03 May 2012, 21:20    Post_subject:  How to check md5sum using bash?  

Hi,

i use a script to run programs from sfs files, that loads the sfs automatically if it is not loaded. It also downloads the sfs from the web if it is not found on the computer.

Now i want to make automatically a md5sum check of the downloaded file. The md5sum is already in the run-script i just need to know how i can create a md5sum using BASH.

I need the result as a $md5sumcheck variable not as console output.

So, i think i have to script something like this:
Code:
md5sumresult=$(md5sumfunc file_to_check)


But what function does create md5sum using bash?

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Thu 03 May 2012, 22:40    Post_subject:  

Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing

Sometimes it is really easy!

Why not using the busybox function md5sum?

Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Fri 04 May 2012, 04:01    Post_subject:  

Quote:
Sometimes it is really easy!


I share your joy Very Happy Very Happy Very Happy
Savour the easy . . .

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2672
Location: USA

PostPosted: Fri 04 May 2012, 10:48    Post_subject:  

RSH wrote:
Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing

Sometimes it is really easy!

Why not using the busybox function md5sum?

Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing


My favorite from the command line is "md5deep", which does a very nice recursive md5 (nice for comparing the contents of one drive against another). It reports both file size, and md5, so you can look for identical copies of the "big hitters".

_________________
Add swapfile
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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