Announcement Announcement Module
Collapse
No announcement yet.
bash commande from Grails application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • bash commande from Grails application

    Hi,
    I am working in grails application wich need to execute an external bash commande like that:
    def cmd= "example".execute()
    cmd.waitFor()

    the problem is that this commande is well executed when i run it from development enviroment but when i deploy it into tomcat this commande is not executed anymore.

    Can someone help me please to solve this problem?

  • #2
    Originally posted by achraf View Post
    Hi,
    I am working in grails application wich need to execute an external bash commande like that:
    def cmd= "example".execute()
    cmd.waitFor()

    the problem is that this commande is well executed when i run it from development enviroment but when i deploy it into tomcat this commande is not executed anymore.

    Can someone help me please to solve this problem?
    Perhaps this question on StackOverflow will help. You can use List.execute() instead of String.execute() to provide the individual arguments, e.g. ["ls", "-la", "."].execute()

    Comment

    Working...
    X