Thanks Steven!

Rob J. Goedman
[email protected]




On May 3, 2014, at 8:05 AM, Steven G. Johnson <[email protected]> wrote:

> run throws an exception if there was an error, so
> 
>     run(`ls`); run(`ls`)
> 
> will only run the second command if the first succeeds.  You could use a try 
> ... catch ... end block if you want to do something special if an error 
> occurs.
> 
> On Saturday, May 3, 2014 10:18:33 AM UTC-4, Rob J Goedman wrote:
> Is there a way to express:
> 
> run(`ls`) == Nothing && run(`ls`)
> 
> i.e., the first command could be make, the second executing the program if 
> make succeeds?
> 
> I looked through 
> http://blog.leahhanson.us/running-shell-commands-from-julia.html which is 
> really nice, but does not address this.
> 
> Thanks,
> Rob J. Goedman
> [email protected]
> 
> 
> 
> 

Reply via email to