On Wednesday, October 8, 2014, 5:31:07 PM, Dave wrote:

> On 2014-10-08 15:23, Duane Hill wrote:
>> No.  &&  is  a  way  of chaining commands together. Your cron says run
>> sa-update  and  then  restart  spamd.  In  other words, when sa-update
>> finishes  running,  regardless  if there was an update applied or not,
>> restart spamd.

> I thought that ; would chain commands together and run both in sequence
> regardless of the results, whereas && is a conditional for if the 
> previous command succeeded and || was a conditional for if the previous
> command failed?

> At least in bash...

I stand corrected. I found this:

    && will automatically run the command on the right, as long as the
    command on the left executes without an error return code.

Sorry for the noise.

-- 
Duane Hill
duih...@gmail.com
"If at first you don't succeed, so much for sky diving."

Reply via email to