Linux Today: Linux News On Internet Time.

More on LinuxToday

Bash/ZSH: Find out the exit codes of all piped commands

Jul 27, 2015, 06:00 (0 Talkback[s])
(Other stories by Anonymous)

A shell pipe is a way to connect the output of one program to the input of another program without any temporary file. How do I get exit status of process that's piped to another (for e.g. 'netstat -tulpn | grep nginx') on a Linux or Unix-like system using a bash shell?

Complete Story