Thanks Andrew, however, my understanding of
command1; command2;
is that command2 will run regardless of whether command1 has completed
successfully...however, your link to
command1; and command2
is exactly what I was looking for -- thanks!
__
*(206) 414-
Also, there are apparently and/or operators, though I haven't used them.
http://ridiculousfish.com/shell/user_doc/html/commands.html#and
On Sun, Aug 11, 2013 at 2:14 PM, Andrew Kreps wrote:
> command ; command ; command ; etc
>
>
> On Sun, Aug 11, 2013 at 2:10 PM, H. Ryan Jones wrote:
>
>> One
command ; command ; command ; etc
On Sun, Aug 11, 2013 at 2:10 PM, H. Ryan Jones wrote:
> One thing that I really like about bash is the ability to string together
> (especially for long running commands), commands to execute one after
> another, but only when the previous command succeeded.
>
One thing that I really like about bash is the ability to string together
(especially for long running commands), commands to execute one after
another, but only when the previous command succeeded.
An example:
s3cmd put 7.zip s3://my_bucket && s3sign.sh my_bucket 7.zip 600
(the above would put