Shell scripts not running on double click [duplicate]












1
















This question already has an answer here:




  • How do I run executable scripts in Nautilus?

    12 answers



  • How do I run a 'sudo' command inside a script?

    7 answers




I have created the below script.



#!/bin/bash
sudo echo "Hi, I'm root"


It is inside a file called script.sh



I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?










share|improve this question















marked as duplicate by pomsky, Kulfy, dessert, Community Mar 17 at 14:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

    – mth1417un
    Mar 17 at 14:58













  • OK, comment removed since that is not what you are looking for then.

    – Terrance
    Mar 17 at 15:01
















1
















This question already has an answer here:




  • How do I run executable scripts in Nautilus?

    12 answers



  • How do I run a 'sudo' command inside a script?

    7 answers




I have created the below script.



#!/bin/bash
sudo echo "Hi, I'm root"


It is inside a file called script.sh



I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?










share|improve this question















marked as duplicate by pomsky, Kulfy, dessert, Community Mar 17 at 14:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

    – mth1417un
    Mar 17 at 14:58













  • OK, comment removed since that is not what you are looking for then.

    – Terrance
    Mar 17 at 15:01














1












1








1









This question already has an answer here:




  • How do I run executable scripts in Nautilus?

    12 answers



  • How do I run a 'sudo' command inside a script?

    7 answers




I have created the below script.



#!/bin/bash
sudo echo "Hi, I'm root"


It is inside a file called script.sh



I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?










share|improve this question

















This question already has an answer here:




  • How do I run executable scripts in Nautilus?

    12 answers



  • How do I run a 'sudo' command inside a script?

    7 answers




I have created the below script.



#!/bin/bash
sudo echo "Hi, I'm root"


It is inside a file called script.sh



I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?





This question already has an answer here:




  • How do I run executable scripts in Nautilus?

    12 answers



  • How do I run a 'sudo' command inside a script?

    7 answers








bash scripts sh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 17 at 14:28









dessert

25.2k673106




25.2k673106










asked Mar 17 at 14:12









mth1417unmth1417un

3231214




3231214




marked as duplicate by pomsky, Kulfy, dessert, Community Mar 17 at 14:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by pomsky, Kulfy, dessert, Community Mar 17 at 14:38


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

    – mth1417un
    Mar 17 at 14:58













  • OK, comment removed since that is not what you are looking for then.

    – Terrance
    Mar 17 at 15:01



















  • Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

    – mth1417un
    Mar 17 at 14:58













  • OK, comment removed since that is not what you are looking for then.

    – Terrance
    Mar 17 at 15:01

















Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

– mth1417un
Mar 17 at 14:58







Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :)

– mth1417un
Mar 17 at 14:58















OK, comment removed since that is not what you are looking for then.

– Terrance
Mar 17 at 15:01





OK, comment removed since that is not what you are looking for then.

– Terrance
Mar 17 at 15:01










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局