[ 
https://issues.apache.org/jira/browse/CAMEL-13011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16722987#comment-16722987
 ] 

twlhack commented on CAMEL-13011:
---------------------------------

ok,  I have sent mail!

 

 

 
{color:#909090}I have a need{color}
{color:#909090} {color}
{color:#909090}First I sync the file to the web server via camel-sftp{color}
{color:#909090} {color}
{color:#909090}After transferring the file, do the nginx -s reload command on 
each server.{color}
{color:#909090} {color}
{color:#909090}My code is as follows{color}
{color:#909090} {color}
{color:#909090}But why pollcomand doesn't work{color}
{color:#909090} {color}
from("file:I:/workProject/java/xxxx/luaFiles/").multicast().to("direct:a", 
"direct:b").end().to("direct:c");
        
from("direct:a").to("sftp://[[email protected]/xxxx/controllers/gen/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true|http://[email protected]/xxxx/controllers/gen/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true]";);
        
from("direct:b").to("sftp://[[email protected]/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true|http://[email protected]/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true]";);
        
from("direct:c").to("ssh://[root:[email protected]?poll-command=reboot%0A&pollCommand=nginx|http://root:[email protected]/?poll-command=reboot%0A&pollCommand=nginx]
 -s reload %0A").log("done !!${body}");
 
how to
please help
thanks!!!   

> 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
>            Priority: Major
>
> {code:java}
> from("file:I:/workProject/java/xxxx/luaFiles/").multicast().to("direct:a", 
> "direct:b").end().to("direct:c");
> from("direct:a").to("sftp://[email protected]/xxxx/controllers/gen/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true";);
> from("direct:b").to("sftp://[email protected]/?password=root&stepwise=true&runLoggingLevel=TRACE&throwExceptionOnConnectFailed=true&idempotent=true";);
> from("direct:c").to("ssh://root:[email protected]?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)

Reply via email to