Hi,

I was trying to run, on Windows, a workflow created on Linux. The 
workflow contains an external tools. Unfortunately the workflow stores 
the shellPrefix and linkCommand set in the Taverna Workbench used to 
create the workflow.

<mechanismXML>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#xD;
&lt;localInvocation&gt;&lt;shellPrefix&gt;/bin/sh 
-c&lt;/shellPrefix&gt;&lt;linkCommand&gt;/bin/ln -s %%PATH_TO_ORIGINAL%% 
%%TARGET_NAME%%&lt;/linkCommand&gt;&lt;/localInvocation&gt;&#xD;
</mechanismXML>


When running the workflow on Windows, Taverna can't find /bin/sh:

Set of ErrorDocuments to follow.
ErrorDocument 1
Processor 'extractFits' - Port 'STDOUT': java.io.IOException: Cannot run 
program "/bin/sh" (in directory 
"[...]\AppData\Local\Temp\usecase4854886647462960002dir"): CreateProcess 
error=2, Das System kann die angegebene Datei nicht finden
de.uni_luebeck.inb.knowarc.usecases.invocation.InvocationException: 
java.io.IOException: Cannot run program "/bin/sh" (in directory 
"[...]\AppData\Local\Temp\usecase4854886647462960002dir"): CreateProcess 
error=2, Das System kann die angegebene Datei nicht finden
de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation.submit_generate_job_inner(LocalUseCaseInvocation.java:362)
 

de.uni_luebeck.inb.knowarc.usecases.invocation.UseCaseInvocation.submit_generate_job(UseCaseInvocation.java:260)
 

net.sf.taverna.t2.activities.externaltool.ExternalToolActivity$1.run(ExternalToolActivity.java:255)
 

java.lang.Thread.run(unknown file)


Is there a way to make the workflows more portable, e.g. in cases where 
the Windows and Linux commands are equivalent and no special shell 
commands are used?

Cheers,
Markus

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to