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/07 05:23:43 UTC

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

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


   > 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 code seems to just change the `scala.Array` type to the `java.util.List` type. Can you display specific error messages?


-- 
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