Re: How to write IF Else condition in RunsShellScript component?

Ritu Sabharwal <[email protected]> Mon, 19 Feb 2007 17:10:14 +0530
Newsgroups gmane.comp.java.smartfrog.devel
Organization HP
Message-ID <[email protected]>
Hello Ambika,

There is a IF construct available in SF language that works at language =

level.

You can transfer the file to the respective node using ftp/scp component =

and then execute it in the shell.

Thanks & Regards,
Ritu.

Ambika Awanty wrote:

>
> Hi All,
> Can any one tell me how to write following logic in cmd field of =

> RunShellScripts ?
> if [ -s /tmp/list ]
> then
> echo "Not empty"
> else
> echo "Empty"
> fi
> 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.
> Thanks and Regards,
> ambika
>
> ------------------------------------------------------------------------
> Here=92s a new way to find what you're looking for - Yahoo! Answers =

> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share yo=
ur
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DD=
EVDEV
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Smartfrog-developer mailing list
>Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>  =

>



-------------------------------------------------------------------------
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV