Re: [U-Boot] help: how get last command result using scripting

2018-06-22 Thread Michael Nazzareno Trimarchi
Hi On Fri, Jun 22, 2018 at 10:32 AM, Lukasz Majewski wrote: > Hi Michael, > >> Hi >> >> On Fri, Jun 22, 2018 at 9:10 AM, Lukasz Majewski >> wrote: >> > Hi Michael, >> > >> >> Hi all >> >> >> >> Trying to understand how to get the last result. For example: >> >> sspi 1:0.3 24 72; sspi 1:1.3 2

Re: [U-Boot] help: how get last command result using scripting

2018-06-22 Thread Lukasz Majewski
Hi Michael, > Hi > > On Fri, Jun 22, 2018 at 9:10 AM, Lukasz Majewski > wrote: > > Hi Michael, > > > >> Hi all > >> > >> Trying to understand how to get the last result. For example: > >> sspi 1:0.3 24 72; sspi 1:1.3 24 73 > > > > The $? shall do the job. > > > > => true > > => ech

Re: [U-Boot] help: how get last command result using scripting

2018-06-22 Thread Michael Nazzareno Trimarchi
Hi On Fri, Jun 22, 2018 at 9:10 AM, Lukasz Majewski wrote: > Hi Michael, > >> Hi all >> >> Trying to understand how to get the last result. For example: >> sspi 1:0.3 24 72; sspi 1:1.3 24 73 > > The $? shall do the job. > > => true > => echo $? > 0 > => false > => echo $? > 1 commit d7fc

Re: [U-Boot] help: how get last command result using scripting

2018-06-22 Thread Lukasz Majewski
Hi Michael, > Hi all > > Trying to understand how to get the last result. For example: > sspi 1:0.3 24 72; sspi 1:1.3 24 73 The $? shall do the job. => true => echo $? 0 => false => echo $? 1 Or have I misunderstood something? > > Now I need to have the last output of the last comman

[U-Boot] help: how get last command result using scripting

2018-06-19 Thread Michael Nazzareno Trimarchi
Hi all Trying to understand how to get the last result. For example: sspi 1:0.3 24 72; sspi 1:1.3 24 73 Now I need to have the last output of the last command to compare in one script. Any idea? Michael ___ U-Boot mailing list U-Boot@lists.denx