LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2009, 02:57 PM   #1
Ken_C
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
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:CAD: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.
 
Old 04-13-2009, 05:53 PM   #2
Ken_C
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Bump?
 
Old 04-13-2009, 07:23 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Sudo?
 
Old 04-14-2009, 09:46 PM   #4
Ken_C
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks. How would i use it?
 
Old 04-14-2009, 09:51 PM   #5
Ken_C
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry I'm fresh from Microsoft's point and click world. all this Linux command line stuff is very new to me.
 
Old 04-16-2009, 07:44 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
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.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with installation on disc1 (confirmation dialog) NEED HELP!!! SRneXus Fedora 5 02-23-2007 04:51 AM
login confirmation erat123 Programming 2 01-20-2007 02:45 AM
Ctrl+C Confirmation pjpeter Linux - Newbie 2 09-25-2004 06:49 PM
shutdown - confirmation dialog needed in fluxbox linuxfond Linux - Newbie 0 07-09-2004 08:38 AM
what's with all the confirmation screens? andredude LQ Suggestions & Feedback 1 05-07-2004 04:56 PM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration