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-26-2006 01:53 AM
executing script big123456 Shell Programming and Scripting 1 06-03-2005 08:32 AM
RSH use for executing a script frustrated1 Shell Programming and Scripting 6 10-02-2003 09:24 AM
Executing ksh script from cgi hodges Shell Programming and Scripting 1 05-27-2003 11:57 AM
Executing Ps in script Claude Shell Programming and Scripting 1 11-22-2001 02:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-30-2008
snvijaysankar snvijaysankar is offline
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
  #2 (permalink)  
Old 05-30-2008
quine quine is offline
Registered User
  
 

Join Date: Mar 2008
Location: Bay Area California
Posts: 68
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.
  #3 (permalink)  
Old 06-02-2008
zaxxon's Avatar
zaxxon zaxxon is online now Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0