LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disable execute confirmation dialog? (https://www.linuxquestions.org/questions/linux-newbie-8/disable-execute-confirmation-dialog-718006/)

Ken_C 04-09-2009 01:57 PM

Disable execute confirmation dialog?
 
I have these scripts that i created to simplify Wakeonlan commands to different machines on the LAN. I thought a single click on an icon would be nice so I created them. but instead of just doing what I ask, it wants me to confirm that I really want to do the thing i just asked it to do. can I disable this feature? can it be disabled only for these specific scripts?

the script:

#!/bin/bash
wakeonlan MA:CA:DD:RE:SS:00

when i click the icon on the desktop i get a dialog that pops up and says the file is executable and gives a bunch of options to either execute or run in terminal or edit in gedit or cancel. while this is nice, and will one day keep me from trashing an important file, I dont want this in this case. I just want it to send the nice magic packet to turn things on. dont ask if i really want to do it, just do it. it does work after I tell it yes i do want to really do the thing i just asked it to do.

its ubuntu 8.10 btw in case it matters.

Ken_C 04-13-2009 04:53 PM

Bump?

unSpawn 04-13-2009 06:23 PM

Sudo?

Ken_C 04-14-2009 08:46 PM

Thanks. How would i use it?

Ken_C 04-14-2009 08:51 PM

Sorry I'm fresh from Microsoft's point and click world. all this Linux command line stuff is very new to me. :)

unSpawn 04-16-2009 06:44 PM

NP. 'man sudoers' for starters and see the examples in /etc/sudoers. Try to figure it out and if it doesn't work for you please post the example you used to test.

(BTW, totally unrelated, but I noticed you cleaned out past posts in a thread in /General. Could you please let me know the reason why? If you're not comfortable talking about it here you're invited to send me an email.)


All times are GMT -5. The time now is 08:39 PM.