From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] help: how get last command result using scripting
Date: Fri, 22 Jun 2018 09:10:04 +0200 [thread overview]
Message-ID: <20180622091004.41caa47d@jawa> (raw)
In-Reply-To: <CAOf5uwmWoJmcFEkEoqLLUKx2GA_ek2O30Xek-c-U3w0HOgN8uw@mail.gmail.com>
Hi Michael,
> Hi all
>
> Trying to understand how to get the last result. For example:
> sspi 1:0.3 24 700002; sspi 1:1.3 24 730000
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 command to compare in
> one script. Any idea?
>
> Michael
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180622/de9a1aaa/attachment.sig>
next prev parent reply other threads:[~2018-06-22 7:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-19 10:22 [U-Boot] help: how get last command result using scripting Michael Nazzareno Trimarchi
2018-06-22 7:10 ` Lukasz Majewski [this message]
2018-06-22 7:11 ` Michael Nazzareno Trimarchi
2018-06-22 8:32 ` Lukasz Majewski
2018-06-22 8:42 ` Michael Nazzareno Trimarchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180622091004.41caa47d@jawa \
--to=lukma@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.