How to write IF Else condition in RunsShellScript component?
Ambika Awanty <ambika_awanty1-/[email protected]> Mon, 19 Feb 2007 10:35:14 +0000 (GMT)
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1714220075==
Content-Type: multipart/alternative; boundary="0-1875239936-1171881314=:27445"
Content-Transfer-Encoding: 7bit
--0-1875239936-1171881314=:27445
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi All,
Can any one tell me how to write following logic in cmd field of Run=
ShellScripts ?
=20
if [ -s /tmp/list ]
then
echo "Not empty"
else
echo "Empty"
fi
=20
I cant write this in a file and execute that file in shell, because =
i want to deploy this component in another node, where this file wont be =
available.
=20
Thanks and Regards,
ambika
=20
=20
=20
=09
---------------------------------
Here=92s a new way to find what you're looking for - Yahoo! Answers=20
--0-1875239936-1171881314=:27445
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<BR> <DIV>Hi All,</DIV> <DIV> Can any one tell me how to wr=
ite following logic in cmd field of RunShellScripts ?</DIV> <DIV> <=
/DIV> <DIV>if [ -s /tmp/list ]</DIV> <DIV>then</DIV> <DIV>echo "Not em=
pty"</DIV> <DIV>else</DIV> <DIV>echo "Empty"</DIV> <DIV>fi</DIV> <DIV=
> </DIV> <DIV> I cant write this in a file and execute =
that file in shell, because i want to deploy this component in another no=
de, where this file wont be available.</DIV> <DIV> </DIV> <DIV>Tha=
nks and Regards,</DIV> <DIV>ambika</DIV> <DIV> </DIV> <DIV><BR>&n=
bsp;</DIV><p> 
=09
=09
<hr size=3D1></hr>=20
Here=92s a new way to find what you're looking for - <a href=3D"http://us=
.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answ=
ers</a>=20
--0-1875239936-1171881314=:27445--
--===============1714220075==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============1714220075==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
--===============1714220075==--