On Sunday, January 11, 2015 at 8:40 AM, "Nicholas Robbins" 
<[email protected]> wrote:
> On Sunday, January 11, 2015 6:26 AM, Moritz Barsnick <[email protected]> wrote:
> > On Sun, Jan 11, 2015 at 02:07:57 +0100, [email protected] wrote:
> > > I'm a little confused as to why in the first example the sleep
> > > command is followed by a ; while in yours it's followed by && -
> > > two different ways to indicate the same thing?
> >
> > No. One '&' followed by a second command launches the second command
> > once the first one has dropped to the background.
> >
> > Two '&&' lauches the second command only when the first one terminates
> > and returns with "success" (exit code 0). 'sleep & command' makes no
> > sense to me.

> && launches the second command if the first one succeeds.

> || launches the second command if the first one fails.

> ; launches the second command after the first one finishes.

(I took the liberty of reformatting the quoting so it looks a bit neater, and 
to cut out extraneous text)

Just wanted to thank you guys for the explanations, I much appreciate them! 
Seems that Bash is more capable than I originally thought.
 
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to