help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Problems with background jobs


From: David Niklas
Subject: Re: [Help-bash] Problems with background jobs
Date: Thu, 30 Aug 2018 16:56:38 -0400

On Wed, 29 Aug 2018 11:39:32 -0400
David Niklas <address@hidden> wrote:
> On Thu, 16 Aug 2018 10:52:32 +0200
> "R. Diez" <address@hidden> wrote:
> > Hi there:  
<snip>
> > If OpenOCD dies during initialisation, reading from the pipe will
> > fail, and the Bash script will exit.  
> 
> export H="$!";
> sleep 15s;
> kill $H;
> wait $H;
> 
> if [ $H -ne 0 ]; then exit; fi
<snip>

Oops! That should read:
if [ $? -ne 0 ]; then exit; fi

Sincerely,
David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]