From: rudresh <rudresh.tk@lntemsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] hush shell script commands(eval)
Date: Wed, 24 Dec 2008 00:29:57 -0800 (PST) [thread overview]
Message-ID: <21156593.post@talk.nabble.com> (raw)
Hi All
Mary Christmas . Happy New Year.
I have some query on hush shell script language.
I'm using hush shell script to automate the testing for command
exists in U-boot.
The scripts is as follows
echo --------------------------------------
echo Target Test:
setenv check 'if imi FE7E0000; then val=1; else val=0; fi'
print check
run check
echo --------------------------
echo FRAM Command Test
echo --------------------------------------
setenv check 'if fram; then val_fram=1; else val_fram=0; fi'
print check
run check
echo --------------------------------------
echo $val
echo $val_fram
echo ------------------------------------
setenv check 'if $val; then echo imi command executes Success; else echo imi
commd Fails; fi'
print check
run check
echo >>>>>>>>>>>>>>>>>>>>>>>>
setenv check 'if $val_fram; then echo fram command executes Success; else
echo fram commd Fails; fi'
print check
run check
echo END Test
If i execute this string I?m getting this error.
check=if ($val); then echo command executes Success; else echo imi commd
Fails; fi
Unknown command '(0)' - try 'help'
imi commd Fails
>>>>>>>>>>>>>>>>>>>>>>>>
check= if $val_fram; then echo fram command executes Success; else echo fram
commd Fails; fi
Unknown command '1' - try 'help'
I?m not able to fix this error. is it not support the constant value in if
then else fi statement?. Is there any alternate method?
I also trying to use the standalone application, is there any command like
system("command") in u-boot. i want to run command in U-boot using
standalone application.
please help me.
Thanks & Regards,
Rudresh
--
View this message in context: http://www.nabble.com/Re%3Ahush-shell-script-commands%28eval%29-tp21156593p21156593.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
reply other threads:[~2008-12-24 8:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=21156593.post@talk.nabble.com \
--to=rudresh.tk@lntemsys.com \
--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.