[kepler-users] Issue with shell script
Christopher Brooks
cxh at eecs.berkeley.edu
Tue Dec 18 09:30:49 PST 2012
Hi Kapil,
Do you have a test case?
Are you using the Kepler devel tree?
Attached is a Kepler .xml file from the devel version of Kepler that
uses a String Constant to call echo with multiple arguments that have
double quotes around them.
BTW - The Exec actor comment says:
> /** The command to be executed. The command is parsed by
> * {@link ptolemy.util.StringUtilities#tokenizeForExec(String)}
> * into tokens and then executed as a separate subprocess.
> * The initial default value is the string
> * <code>echo "Hello, world."</code>.
> *
> * <p>The command parameter is read only once during fire().
> * If you want to spawn another different command,
> * use life cycle management actors such RunCompositeActor.</p>
> */
> public PortParameter command;
tokenizeForExec could be causing you problems.
_Christopher
On 12/18/12 1:56 AM, Kapil Kulkarni wrote:
>
> Hi,
>
> We are trying out kepler in one of project and have an issue related
> to shell script.
>
> We are using ExternalExecution actor and the command which is shell
> script is as follows:
>
> "sh /home/user/annotation.sh "/root/Programs/ " test.jar "eff hg19 -s
> " "test.annotate""
>
> In the command above, we want to execute annotations.sh shell script
> and pass 3 arguments to it - "/root/Programs/ " test.jar "eff hg19 -s
> " "test.annotate"
>
> But what we found that these arguments are not getting passed at all.
> What could be the issue? Or do we need to provide anything else?
>
> Thanks and Regards,
>
> Kapil
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please
> notify the sender and delete all copies of this message. Persistent
> Systems Ltd. does not accept any liability for virus infected mails.
>
>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20121218/35328cd5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExecQuotes.xml
Type: text/xml
Size: 38341 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20121218/35328cd5/attachment-0001.xml>
More information about the Kepler-users
mailing list