Hi Gareth,

thanks for the fast answer and sorry for getting back so late. I didn't
receive the mailing list digest until now.

I just wasn't really aware before that the scripting environment is
stored in the workflow but this makes sense when making use of specific
features of the scripting language.

I saw that importing a workflow with a different environment than is
configured in the workbench it is added to the Tool invocation
preferences. Changing it there might be an easy way to switch it for
simple commands that are written in a portable way.

Cheers,
Markus


Am 2014-03-05 14:41, schrieb [email protected]:
> Hi Markus,
>
> One work around is too invoke the workflow under Windows as a shell command 
> within a CYGWIN shell.
> Then the 'sh' interpreter, '#!'  and 'chmod +x' could be available as system 
> calls used to Taverna.
>
> Another tactic is to use a cross-platform scripting language like 'perl' or 
> 'python' to do any scripting call instead of 'sh/bash/ksh'.
> I've been using Perl on both Linux and Windows for years.
> Most of the POSIX functions in Windows versions of Perl are mapped to the 
> appropriate Windows systems calls.
>
> The '#!' is not supported on Windows.
> Windows uses things like 'BAT' files or PowerShell for native scripting.
>
> You organise your scripting calls with a call like 'scripting_host.exe 
> ./script_file_path' in a Taverna workflow.
> Provided that you use a cross-platform scripting host (Perl/Python) and that 
> the interpreter is in your system's search path, in theory you could make WF 
> definitions cross-platform.
>
> I've never tried as all my Taverna stuff needs only to run under Linux.
>
> Best Regards,
>
> G.


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&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