Re: network script syntax problem
Jude DaShiell <[email protected]>
| Newsgroups | gmane.linux.redhat.blinux.general |
|---|---|
| Message-ID | <[email protected]> |
Correction, I got 2 back on the $? variable this time. You can't redirect that at all otherwise the redirect is successful and that's what gets the zero back on the exit code. On Fri, 6 Nov 2015, Ari Moisio wrote: > Date: Fri, 6 Nov 2015 07:59:51 > From: Ari Moisio <[email protected]> > Reply-To: Linux for blind general discussion <[email protected]> > To: Linux for blind general discussion <[email protected]> > Subject: Re: network script syntax problem > > Hi > > The $(...) does not capture stderr output. > > Could you use ping exit code directly; it will fail in it got no repllies. > > > --