Executing a script through GUI


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Executing a script through GUI
# 1  
Old 05-30-2008
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  
Old 05-30-2008
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  
Old 06-02-2008
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

2. Shell Programming and Scripting

script for GUI tool

Hi Legends. Thanks for all your support till now, Now my requirement is planned to create a GUI backup tool for both "Source Code Backup" and "Mysql Backup" is it possible to write own code for this , or else any other opensource Backup tool is available which option is better? my wish is Write... (0 Replies)
Discussion started by: anishkumarv
0 Replies

3. Shell Programming and Scripting

Create GUI or Executable For Script

Hi all. I've got a unix script at work that I just got done with. Now they want me to write some simple way to run it on Windows. Right now we log into a Solaris server using Hummingbird Exceed to gain a terminal. Im thinking that there really isn't any good way to get Windows and the server... (5 Replies)
Discussion started by: Grizzly
5 Replies

4. Shell Programming and Scripting

GUI possible in shell script..?

Hi All, Currently my requirement is to parse through the log scripts and show the errors to the user.The only twist I got is it needs some GUI ,which is considered user friendly. Does anyone has any idea , if GUI can be implemented through shell scripts, please let me know. Thanks! nua7 (5 Replies)
Discussion started by: nua7
5 Replies

5. Shell Programming and Scripting

GUI shell script for Linux

Hi, I want to write shell script file that have a GUI with multiple input box for user entry , i mean multiple input box in one dialog ( window) not one window for each entry , i tried kdialog , and zenity , i didnt find a way to have multiple input box in one window with zenity and kdialog.... (0 Replies)
Discussion started by: mr_aliagha
0 Replies

6. Shell Programming and Scripting

Reg :Executing a script through GUI .

Hi , Can we run shell scripts by calling them through a GUI , so that even a New comer can run them by just clicking on them . We have around 100 Scheduled scripts and we have cornered on some 20 scripts that should be called through a GUI . How can this be achieved ? Thanks in... (2 Replies)
Discussion started by: shyam.appalla
2 Replies

7. Shell Programming and Scripting

gui script glade etc

Hello all, im not very good at bash:( etc a reall beginer, but what i am tryiny to do is say make a script/program that when run, shows a button,(gui) and when you press the button issues a bash command eg apt-get install devede etc, i can make a script to install/ do things i want, and sort of... (1 Reply)
Discussion started by: dave123
1 Replies

8. Shell Programming and Scripting

can we create a GUI by shall script

Hi All, I am not new to unix but just begin to realizing the power of unix shell programming.. i need to create a shell script that can provide a graphical interface to me to enter information.. and this script i ll run through telnet program remotly.. is this possible ... plz guide me (1 Reply)
Discussion started by: johnray31
1 Replies

9. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies

10. Shell Programming and Scripting

GUI script

Hi. Iam having trouble with this GUI script. Well the script works fine but when i enter the IP and hit ping it pull up ping program itself.I want it to take the Number i entered and ping that number. Someone please tell me what to do. This is for PERL and on a Win98 machine Script... (5 Replies)
Discussion started by: perleo
5 Replies
Login or Register to Ask a Question