Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG Members <EMAIL:PROTECTED>
- Subject: [MLUG] basic Unix pipe/exit code problem
- From: Mark Rages <EMAIL:PROTECTED>
- Date: Thu, 3 Mar 2005 12:24:49 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;s=beta; d=gmail.com;h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;b=kU+F/RHtjYmGxZDub/taOZhbkoRvVnlqeS+5rexySbNOMKEogIMGvCm0Kw8R6MU/j4FJc9FOjDAe5GFcfPk707xtUXjS5fxAK0bFdKGnlxHB1bwkA8w5rHDRKlu0ltr6uJDZDJrvQLJOnW1FabSu+GITBgp/AY58ZHEMLfjWwXg=
- Reply-to: Mark Rages <EMAIL:PROTECTED>, MLUG Members<EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
hey everybody,
I have a backup script that uses mysqldump | gzip in a subshell. I
check the return code of the subshell, but mysqldump can croak without
the subshell returning a nonzero error code.
I have reduced my problem to this:
( /bin/false | gzip > /dev/null ) || echo fail
I want it to echo "fail" because /bin/false gives a nonzero exit code.
But it doesn't. What am I missing?
Regards,
Mark
EMAIL:PROTECTED
--
You think that it is a secret, but it never has been one.
- fortune cookie
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members