Running Bash Script in Java
问题 So essentially, I am trying to run the command "/dir/command -arg" to change the LED color on a USB device in Java. I am using Ubuntu 10.04. When I run the command from the terminal, it works just fine. However, I tried every iteration of Runtime.exec() that I could find and none of them seem to work. I then created a script with the following contents: #!/bin/bash echo "hello" /dir/command -arg when I run this from a terminal it works just fine. However when I run @Override public void run()