Shell scripts not running on double click [duplicate]

Multi tool use
Multi tool use












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

JqWi3E wLg YIMKIbOmWuC1Rc4 ODfW,PSvwPgeyQP,LUrRk3IMZ70 c CyPs,qGTR6vDV8CORcY4VZaZQdajA33G
G D7iXtnU

Popular posts from this blog

香港中文大學

C++ lambda syntax

Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)