The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[AIX] executing script piooooter UNIX for Dummies Questions & Answers 1 05-25-2006 09:53 PM
executing script big123456 Shell Programming and Scripting 1 06-03-2005 04:32 AM
RSH use for executing a script frustrated1 Shell Programming and Scripting 6 10-02-2003 05:24 AM
Executing ksh script from cgi hodges Shell Programming and Scripting 1 05-27-2003 07:57 AM
Executing Ps in script Claude Shell Programming and Scripting 1 11-21-2001 11:01 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-30-2008
Registered User
 

Join Date: Mar 2007
Posts: 6
Executing a script through GUI

Hi

I'm facing a situation where we need to restrict commandline access to Unix server. But there are some scripts that needs to be executed. I need to execute a script with double-click or something like that without having command-line access.
I appreciate your thoughts on this.

Regards,
Vijay
Reply With Quote
Forum Sponsor
  #2  
Old 05-30-2008
Registered User
 

Join Date: Mar 2008
Location: Bay Area California
Posts: 63
Hello...

There are plenty of web-writing-utilities and IDEs that will let you execute scripts with a click. You make them links and when the links are pressed, the result is the execution of a specific script. You can roll your own a little more too... With the pressed link, you call a perl CGI program (or something you write in some other language or IDE) that executes the specific script. It is a little more complicated than just a click unless you never use arguments in your command line, or at least never change them, Calling a program is just like naming a web page e.g. <a "href=http://www.bla.bla.com/programToRun.cgi">click to run utility X</a>

Of course a static list of utilities to execute is not very exciting and always a maintenance problem with you want to change things in your scripts. What you want can be done as a quick hack for a few staticly named scripts, or the beginning of a whole command and control system.
Reply With Quote
  #3  
Old 06-02-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,031
A possible way:

- Add a new user for this
- Install sudo
- Edit sudoers accordingly to your needs (ie. if root or some rights of another user is needed to execute those scripts)
- Have a desktop icon where those scripts are called with sudo in front.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0