You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2021/12/02 13:33:47 UTC

[GitHub] [incubator-linkis] mindflow94 commented on issue #1145: shell engine cannot support special operations

mindflow94 commented on issue #1145:
URL: https://github.com/apache/incubator-linkis/issues/1145#issuecomment-984631917


   I tried to modify shellEngineConnExecutor's code and this issue was resolved.
   
   ```
   val processBuilder: ProcessBuilder = new ProcessBuilder(generateRunCodeToList(code))
     
   private def generateRunCodeToList(code: String): util.List[String] = {
       util.Arrays.asList("sh", "-c", code)
     }
   ```
   
   I didn't do the full test and didn't know if there would be any other risks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org