You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "twlhack (JIRA)" <ji...@apache.org> on 2018/12/17 13:11:00 UTC

[jira] [Created] (CAMEL-13011) how to in camel-sftp uploaded files after used camel-ssh pollcommand feature?

twlhack created CAMEL-13011:
-------------------------------

             Summary: how to in camel-sftp uploaded files after used camel-ssh pollcommand feature?
                 Key: CAMEL-13011
                 URL: https://issues.apache.org/jira/browse/CAMEL-13011
             Project: Camel
          Issue Type: Bug
          Components: camel-sftp, camel-ssh
    Affects Versions: 2.21.1
         Environment: java 1.8

spring boot 1.15.x

centos 7 

 
            Reporter: twlhack


{code:java}
from("file:I:/workProject/java/xxxx/luaFiles/").multicast().to("direct:a", "direct:b").end().to("direct:c");
from("direct:a").to("sftp://root@192.168.56.14/xxxx/controllers/gen/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true");
from("direct:b").to("sftp://root@192.168.56.14/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true");
from("direct:c").to("ssh://root:root@192.168.56.14?pollCommand=reboot%0A").log(" uploaded success !${body}");
{code}
In after  uploaded files completed , I want to send command to remote sever do  nginx -s reload 

etc operation!!

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)