Correct:
-disk-space files are from:
disk_space "$OPT_DEST" > "$OPT_DEST/$prefix-disk-space" check_disk_space \ "$OPT_DEST/$prefix-disk-space" \ "$OPT_DISK_BYTES_FREE" \ "$OPT_DISK_PCT_FREE" \ "$margin"
-df files are from a collection:
(echo $ts; df -k) >> "$d/$p-df" &
So the attached branch looks good: there may not be -df or other collection files if other things go wrong, but there should always be an -output file for every collection because of:
( collect "$OPT_DEST" "$prefix" ) >> "$OPT_DEST/$prefix-output" 2>&1 &
I.e. collect = -output file even if the collection immediately dies. So I'll merge the branch. Thanks for the fix, Daniel!
Correct:
-disk-space files are from:
disk_space "$OPT_DEST" > "$OPT_DEST/ $prefix- disk-space"
check_ disk_space \
"$OPT_ DEST/$prefix- disk-space" \
"$OPT_ DISK_BYTES_ FREE" \
"$OPT_ DISK_PCT_ FREE" \
"$margin"
-df files are from a collection:
(echo $ts; df -k) >> "$d/$p-df" &
So the attached branch looks good: there may not be -df or other collection files if other things go wrong, but there should always be an -output file for every collection because of:
(
collect "$OPT_DEST" "$prefix" $prefix- output" 2>&1 &
) >> "$OPT_DEST/
I.e. collect = -output file even if the collection immediately dies. So I'll merge the branch. Thanks for the fix, Daniel!