[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use the camel-ssh feature to help me manage remote services such as the nginx reload command

I have a need

First I sync the file to the web server via camel-sftp

After transferring the file, do the nginx -s reload command on each server.

My code is as follows

But why pollcomand doesn't work

from("file:I:/workProject/java/xxxx/luaFiles/").multicast().to("direct:a", "direct:b").end().to("direct:c");
        from("direct:c").to("ssh://root:root@ -s reload %0A").log("done ŁĄŁĄ${body}");

how to 
please help