Search Results

Search: Posts Made By: Eomer
1,367
Posted By Don Cragun
You don't need to use a printf style format...
You don't need to use a printf style format string operand with logger, but you do need a then in your if statement.

if ! tmp "$FILE" "$TARGET/$TIMESTAMP/$DATE" > /dev/null 2>&1; then
logger...
1,367
Posted By Don Cragun
It would seem that after the line: ...
It would seem that after the line:
$TRANSFER "$FILE" "$TARGET/$TIMESTAMP/$DATE"
you would want to run command something like:
if ! cmp "$FILE" "$TARGET/$TIMESTAMP/$DATE" > /dev/null 2>&1
...
Showing results 1 to 2 of 2

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