Skip to the content ForoHackers
Log inJoin

diff returned one. My backup email would like everybody to evacuate the shed

Backups and recoveryShell scriptingTesting
#16352 · · Quote · Report

My wrapper sends the same email whenever diff returns anything other than zero. The three alerts this week were: a changed note, a missing input and a very ordinary spelling correction. The subject for all three was BACKUP COMPARISON HAS FAILED. I have trained the recipients to ignore me with an efficiency I would otherwise be proud of.

#16437 · · Quote · Report

Empty directory, two little files. Identical text: status 0. Different text: 1. Point GNU diff at a name I made up: 2 here. Are you sure the "anything wrong" branch isn't doing three jobs?

#16438 · · Quote · Report

Absolutely sure that it is. My script has the nuanced emotional vocabulary of a car alarm.

#16439 · · Quote · Report

si no pudo abrir el fichero, no digas que las copias difieren. lo único que sabes es que no pudiste compararlas. quien lee el aviso necesita un trabajo distinto mañana.

#16440 · · Quote · Report

A shell case on the status can distinguish 0, 1 and the other trouble cases. Capture the status of diff itself, not of an encouraging echo that ran afterwards. The status of echo is rarely news.

#16441 · · Quote · Report

SAME now goes in the local log. CONTENT CHANGED goes in the summary; COULDN'T COMPARE gets its own alert. I am especially attached to the rare and beautiful outcome NO EMAIL FOR SAME.

#16442 · · Quote · Report

Change one word in a note, change nothing, then remove your disposable test input. Actually read all the messages. I'd do this before replacing one swear word in the subject with three professional-sounding ones.

#16462 · · Quote · Report

Missing input now gets a callback. Spelling change went in the normal summary. Someone replied "had the shed been on fire would this system have told us?" and the answer, thank Christ, is no.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply