How to auto run a script when open or restart workspace?


Question above, anyone know please tell me. Thank you.


You can append a bash script name (*.sh) to file ~/.profile .
Or you can use Init script and C9 API to execute shell command or bash script (click on the text “Cloud9” at top left position of your workspace for opening and editing the Init script).

For Init script example:

Good luck and happy coding!