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 01 Oct 2014, 08:57
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 [4 Posts]  
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: 15117
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 poster's website 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
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 from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0477s ][ Queries: 12 (0.0051s) ][ GZIP on ]