You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gvvenkat <Gv...@yahoo.com> on 2013/06/03 23:41:44 UTC

SSH using dynamic slip

Hi, 
 I am trying to build a dynamic end using Slip for SSH flow. The goal is to
run a ksh command in a remote linux machine. End machinne & script name
changes based on the input file name. So I decided to use slip and this same
method has helped me in solving such issues before ( with ftp compoants).
With SSH componant, I tried setting up the ksh command in body and return
SSH ( synamically built command) as return string of the method. For some
reason, the ksh is command is not getting executed. This is all done thru
Java DSL. Can you please help me how I can achieve this using Java DSL. 

Thanks a lot

GVvenkat



--
View this message in context: http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SSH using dynamic slip

Posted by Gvvenkat <Gv...@yahoo.com>.
No I did not have to go that far :) ... I introduced a bean that sets up the
command to be executed on the exchange body ( exchnage.getIn() and on
exchange.getOut). Luckily in my case, I did not have to chnage the to uri.
But I am sure, you can achieve a "dynamic SSH to uri" using bean's get
method. I have done similar one in another project for "file to uri" as
shown below. 

e.g 
<to
uri="file:{{FILECOPY_OUTPUTDIR}}?fileName=${bean:fileCopyMapper.getFullPath}"/>

Technically I am not using the Slip but achieving the same output.

Hope this helps.

regards





--
View this message in context: http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752p5733965.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SSH using dynamic slip

Posted by Scott Cranton <sc...@cranton.com>.
GVvenkat,

I'd be curious what your workaround is. Curious if there's a change needed
in camel-ssh to make it easier...

Scott


On Tue, Jun 4, 2013 at 3:04 PM, Gvvenkat <Gv...@yahoo.com> wrote:

> I found a work around for this... Thanks, if anyone had spent any time on
> it.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752p5733822.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: SSH using dynamic slip

Posted by Gvvenkat <Gv...@yahoo.com>.
I found a work around for this... Thanks, if anyone had spent any time on it.




--
View this message in context: http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752p5733822.html
Sent from the Camel - Users mailing list archive at Nabble.com.