Infrastructure at your Service

All Posts By

Saïd Mendi

Saïd Mendi

Linux – How to check the exit status of several piped commands

By | Operation systems | No Comments

As piping in bash commands is common and very usefull, controling the exit status of each piped commands in bash scripting can be vital, especially for backups. I was checking by a customer the backups of a critical MySQL instance and was surprised even stunned that the return status of all of them was always  successfull when tested but physically on disk, the dumps were all empty. No valid backups since a long time meaning…

Read More