I'm getting nuts with this...
I want to be able to open the application "Jupyter Notebook" with a one line .sh script (that I have made executable) that simply says:
jupyter notebook
If I put this line directly in Terminal, it works. If I drag and drop the .sh script to Terminal, and hit enter, it works. But if I run the script from Nautilus and say "Run in Terminal" you see Terminal opening for the fraction of a second, and then nothing happens.
Help is much appreciated. Best, Khalo
//edit
I added "/bin/bash" to the end of the script, and now Terminal stays open, and I am able to see the error message that says:
"/path_to_script/script.sh: 1: /path_to_script/script.sh: jupyter: not found"
Isn't this weird? As I said before, if typed directly into Terminal it works!
#!/bin/bashjupyter notebook & disown- does that change anything? – Byte Commander Jul 02 '16 at 13:23#!/bin/bashmust be the very first line of your script. And the second line should bejupyter notebook & disown- nothing else. – Byte Commander Jul 02 '16 at 13:32which jupyter? – insert_name_here Jul 02 '16 at 14:09