Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

md5sum

Status
Not open for further replies.

hokky

Technical User
Nov 9, 2006
170
AU
Hi Guys,

I create the checklist using md5sum and I wanna put it in different directory. So I do this

Code:
md5sum *.sh > /tmp/checksum

#and I copy to destination server
scp *.sh user@dest_server:~
scp /tmp/checksum user@dest_server:/tmp/checksum

#and I'll check in /tmp directory
md5sum -c /tmp/checksum

#and the result is
md5sum: dyn.sh: No such file or directory
dynamic.ksh: FAILED open or read

But if I put the checksum in same directory with all *.sh files it works.

Why is that ? How if I wanna separate the directory between the checksum and *.sh files ?

Thanks guys,
 
Hi

The paths must be identical. If you executed the checksum creation from the sh files' directory, you have to execute the checksum verification too from the sh's directory.

Feherke.
 
Hi feherke,

Thanks for your explanation.
1 more question, after I did

md5sum *.sh > /tmp/checksum

If I check in file /tmp/checksum

it contents like this :
aslf098234kjsalkfj script.sh

do you know what the first column encrypted from ? or what it means ?

Thanks guys
 
aslf098234kjsalkfj script.sh

The first column is the md5sum-calculated checksum for the file named in the second column. I should think that is self-evident. ;-)


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top