User interface for the shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting User interface for the shell script
# 1  
Old 11-25-2010
User interface for the shell script

Hi,
I have written a shell script that does the job of downloading a build file and upgrading a application on my test linux system.
This shell is a interactive script where the user needs to enter certain info like the remote system on which the upgrade has to be performed and the build number which needs to be downloaded.
The script is working fine.
But, i would like to have a better user interaction with this script.
What i mean is - can i have this script to be called from a browser.
Since this script runs on a linux system, we do have a webserver running on the system.
So, can i allow this script to be called from a web browser remotely ??
If yes, what basic things i need to have on my side ?

Appreciate your help.
Thanks.
# 2  
Old 11-26-2010
You can write a CGI script that puts out a form if called without arguments but for a post response it calls your script with the form values and gets some sort of status or report to send back to the user as a web page. Any text from the shell command needs to be sanitized to be on an html page, like '&' to "&", as usual. The question is how well does your script work in this unattended sort of environment? Maybe it can be both, on some cue.
This User Gave Thanks to DGPickett For This Post:
# 3  
Old 11-28-2010
Thanks DGPickett.
CGI programming is a solution for my problem.
Thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Switch from Local user to root user from a shell script?

Hi, I need to switch from local user to root user in a shell script. I need to make it automated so that it doesn't prompt for the root password. I heard the su command will do that work but it prompt for the password. and also can someone tell me whether su command spawns a new shell or... (1 Reply)
Discussion started by: Little
1 Replies

2. Solaris

How can i get Solaris interface ip using shell script?

HI Community, my server has more than 15 zones and each one is having virtual interface of 10G adapter (qlge0) if the filter the output of ifconfig -a | grep inet, it's showing all interfaces including virtual. i have take first like from the output and assumed that as my main ip is... (3 Replies)
Discussion started by: bentech4u
3 Replies

3. Shell Programming and Scripting

Web Interface for shell script.

Hi Team, I have daily pdf files which i have to convert in tif images. I have script which does it. I need to put these images in some specific folder (which i create manually) on server. Is there any web based way to it, so that user can simply browse file & it will convert & upload on... (1 Reply)
Discussion started by: paragnehete
1 Replies

4. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

5. Shell Programming and Scripting

How to Login as another user through Shell script from current user[Not Root]

Hi Every body, I would need a shell script program to login as different user and perform some copy commands in the script. example: Supppose ora_toms is the active user ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands ... (9 Replies)
Discussion started by: ujjwal27
9 Replies

6. Shell Programming and Scripting

Shell script trigger using http interface

Hi I have created a shell program, which takes a series of parameters as shown in the below code. Its working good from terminal. My program restorejob.sh -g <NAME> -p <Path-to-search> -r <Path-to-restore> Its working fine from bash shell. I want to extend this functionality like... (1 Reply)
Discussion started by: rakeshkumar
1 Replies

7. AIX

Same shell script does not working on same server but from different interface..why?

Hi , I have shell script which is perfectly working on unix server prompt. But when i execute it using maestro scheduler with same user , it is giving error of not recognizing the env or local variable. This is code in script inbDir=${INTRFACE_DIR}/inbound zipfile=$inbDir/$1 echo... (2 Replies)
Discussion started by: avi.coep
2 Replies

8. Shell Programming and Scripting

root user command in shell script execute as normal user

Hi All I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh URL="www.google.com" VBURL="10.5.2.211" echo "Setting route for $URL for GPRS" URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1` echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies

9. Shell Programming and Scripting

navigating a web interface with a shell script

I'm trying to design a script that will check the external ip address of my home network and then assign it to the A record of a subdomain. When i started, i thought i could do this with SSH, but turns out I don't have ssh access to update the DNS record (not surprising i suppose) So now, i... (2 Replies)
Discussion started by: boyincity
2 Replies

10. Shell Programming and Scripting

How do i change to super user then revert back to ordinary user ,using shell script?

Hi all, I am trying to eject the cdrom from a livecd after certain stage... Now assuming that it is possible to eject,please consider my issue!!! The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive... However if i try pfexec eject it... (3 Replies)
Discussion started by: wrapster
3 Replies
Login or Register to Ask a Question