Remote recursive sha1sum with php

To calculate the SHA-1 sums, display them and make them available for download in a sums.gz file:

<?php echo(`find ./some_directory/ -type f | grep -v sums.gz | xargs sha1sum | gzip -c | tee sums.gz | zcat`); ?>

To check the sums:

<?php echo(`zcat sums.gz | sha1sum -c -`); ?>

Tags: , ,

One Response to “Remote recursive sha1sum with php”

  1. Matt says:

    Congrats on getting your domain back! :D Hope you won’t have to worry about losing any of them for another couple of years.

    I don’t know if it’s cos I’m accessing this from a WinCE terminal, but your first code box in this appears to be empty with just a horizontal scroll bar. The oner in the previous entry looks similar except I can see a single import line.

Leave a Reply