Search Results

Search: Posts Made By: mamemlin
3,866
Posted By Corona688
If you don't mind a bit of delay, there's a much...
If you don't mind a bit of delay, there's a much simpler way: Check if the file's been modified in the last 10 minutes. This won't tell you if the connection broke and left an incomplete file, but...
3,866
Posted By DGPickett
One caveat is that the file might not be wholly...
One caveat is that the file might not be wholly received to set the modify time or change checksum or hash. Nice file transmitters have some way to signal a good transfer, like an ack file or name...
3,866
Posted By DGPickett
Crontab this script before time of earliest...
Crontab this script before time of earliest arrival:#!/usr/bin/ksh

touch /tmp/fmind.mark

while [ 1 ]
do
find your_file -newer /tmp/fmind.mark | read f
if [ "$f" != "" ]
then
...
3,866
Posted By tukuyomi
In sh: Tweak F to your needs. A bit quick but it...
In sh: Tweak F to your needs. A bit quick but it should work

#!/bin/sh

F='/path/to/that/certain/file'
MD5='/tmp/md5ofthatcertainfile'

[ "$(md5sum "$F")" = "$(cat "$MD5" 2>/dev/null)" ] || {...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy