<p>cmd1 && cmd2</p>
<p>The && says run cmd2 only if the exit status of cmd1 indicates success (that is, is 0). The opposite of that is:</p>
<p>cmd1 || cmd2</p>
<p>Which says to run cmd2 if the exit status of cmd1 is something other than 0.</p>
<p>--<br>
Sent from my phone... a G2 running CM7 nightlies!</p>
<div class="gmail_quote">On Mar 15, 2011 1:57 PM, "Ron Frazier" <<a href="mailto:atllinuxenthinfo@c3energy.com">atllinuxenthinfo@c3energy.com</a>> wrote:<br type="attribution">> Could you explain what that does? Are you saying enter both commands on <br>
> the same line like you typed it?<br>> <br>> Sincerely,<br>> <br>> Ron<br>> <br>> On 03/15/2011 01:22 PM, JD wrote:<br>>> Perhaps I'm crazy, but I always do<br>>><br>>> sudo apt-get update&& sudo apt-get upgrade<br>
>><br>>><br>>> together before installing any new packages. This keeps all the<br>>> underlying packages current - that could be the issue you are seeing<br>>> between the different systems. In real-time programming, this is known<br>
>> as data homogeneity. All the data on a specific thread/priority cannot<br>>> be changed by outside priorities until the thread/priority finishes.<br>>> Basically, you get consistent data before you begin processing.<br>
>><br>>> I do agree that not doing the "upgrade" should work provided you aren't<br>>> too out of date with patches. I've just never wanted to test that.<br>>><br>>><br>>><br>
>> On 03/15/2011 12:42 PM, Ron Frazier wrote:<br>>> <br>>>> Preston,<br>>>><br>>>> I can't say what happened. The commands below worked on the other PC's<br>>>> with no problem. PC #3 is running the same version of Ubuntu, but the<br>
>>> process failed and threw the errors I posted. I tried it yesterday, but<br>>>> I have no explanation. Once I installed that one package manually, the<br>>>> rest worked. I actually did the last two commands from synaptic, but the<br>
>>> result should be the same either way.<br>>>><br>>>> sudo add-apt-repository ppa:libreoffice/ppa<br>>>> sudo apt-get update<br>>>> sudo apt-get install libreoffice<br>>>> sudo apt-get install libreoffice-gnome<br>
>>><br>>>> Sincerely,<br>>>><br>>>> Ron<br>>>><br>>>> On 03/15/2011 11:17 AM, Preston Boyington wrote:<br>>>> <br>>>>> Ron Frazier wrote:<br>
>>>><br>>>>> <br>>>>>> I was trying to install Libre Office on my 3rd PC using the PPA as<br>>>>>> described in prior posts. It threw up a bunch of dependency errors:<br>
>>>>><br>>>>>> <br>>>>> <SNIPPED><br>>>>><br>>>>><br>>>>> <br>>>>>> I tried the same thing from synaptic and got the same result. From<br>
>>>>> synaptic, I installed libreoffice-common manually, then was able to<br>>>>>> install libreoffice and libreoffice-gnome with no problem. I don't know<br>>>>>> what was different on this PC, but it seems to be working now.<br>
>>>>><br>>>>>> <br>>>>> just curious, but has the PPA been updated or is your Ubuntu system<br>>>>> using slightly different sources?<br>>>>><br>>>>><br>
>>>> <br>>><br>>> <br>> <br>> -- <br>> <br>> (PS - If you email me and don't get a quick response, you might want to<br>> call on the phone. I get about 300 emails per day from alternate energy<br>
> mailing lists and such. I don't always see new messages very quickly.)<br>> <br>> Ron Frazier<br>> <br>> 770-205-9422 (O) Leave a message.<br>> linuxdude AT <a href="http://c3energy.com">c3energy.com</a><br>
> <br>> _______________________________________________<br>> Ale mailing list<br>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>> <a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>> <a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br></div>