processing & bash files (linux)
in
Programming Questions
•
2 years ago
Hi All,
I have an .pde applet that writes bash files (.sh) to automate some tasks in other software under ubuntu. The problem is I can't make them automatically executable using chmod, so when I call from the applet with open() the script opens in a text editor instead of executing in the terminal.
Is there any simple way to control the terminal using processing?
In the open() documentation recomend to "Be sure to make the file executable before attempting to open it (chmod +x)." But even making the .sh executable it does not executes in the terminal but opens in gedit. Any ideas??
Thanks
I have an .pde applet that writes bash files (.sh) to automate some tasks in other software under ubuntu. The problem is I can't make them automatically executable using chmod, so when I call from the applet with open() the script opens in a text editor instead of executing in the terminal.
Is there any simple way to control the terminal using processing?
In the open() documentation recomend to "Be sure to make the file executable before attempting to open it (chmod +x)." But even making the .sh executable it does not executes in the terminal but opens in gedit. Any ideas??
Thanks
2