[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Testing standard output and exit statuses from commands in a pipe
From: |
Angel Tsankov |
Subject: |
Testing standard output and exit statuses from commands in a pipe |
Date: |
Mon, 27 Apr 2009 17:02:26 +0300 |
Hello!
I'd like to pipe the output from a command, say A, to another command, say
B, then check if both commands completed successfully (i.e.with exist status
0) and, if so, compare the standard output from command B to some string.
How can I do this in a bash script?
Regards,
Angel Tsankov
- Testing standard output and exit statuses from commands in a pipe,
Angel Tsankov <=