Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13011

how to in camel-sftp uploaded files after used camel-ssh pollcommand feature?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.21.1
    • None
    • camel-sftp, camel-ssh
    • None
    • java 1.8

      spring boot 1.15.x

      centos 7 

       

    Description

      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}");
      

      In after  uploaded files completed , I want to send command to remote sever do  nginx -s reload 

      etc operation!!

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            twlhack twlhack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: