Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

execute unix scripts from web.

execute unix scripts from web.

Yeah can we execute unix scripts from web.IF so can u provide any solution for it
8 REPLIES
Steven Schweda
Honored Contributor

Re: execute unix scripts from web.

> [...] provide any solution for it

What, exactly, is "it"?

You might learn something from a Web search
for keywords, like, say:

cgi shell script

but my psychic powers are too weak to tell me
what you really want to do, or what you have
to do it with.

Is there some actual problem which you are
trying to solve? (Could you reveal it?)

Re: execute unix scripts from web.

Launch vmstr scripts from web using logged in user
reporting vmstr completion
history
Report errors from output files. Logs
Execute Install scripts
move to IUT â needs enhancement
e!Vista m- capture metric for build times and keep history
OMS - capture metric for build times and keep history
IOD - capture metric for build times and keep history
build nohup s- - start from one session, and pick up where you left off
must be able to recover from ClearCase errors that require a remount of view
developers could also use the utility

Re: execute unix scripts from web.

Its a real time sceniaro
Torsten.
Acclaimed Contributor

Re: execute unix scripts from web.

The common gateway interface (CGI) is made for server side scripting based on apache web server from the early days of apache until now. Meanwhile there are other solutions too (e.g. PHP extensions), but the basics are very similar.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mel Burslan
Honored Contributor

Re: execute unix scripts from web.

Since shell scripts are not known for being secure, it is usually frowned upon by webmasters and sysadmins, to execute any sort of shell scripts via apache's cgi ability. Having said that, it can be done and I have done it in the distant past. So distant that I no longer remember the specifics of how an what I modified in the httpd.conf file. But it was simple enough to accomplish in less than an hour.

My suggestion is to accomplish what you want to do with a language, which is a bit more geared towards cgi/web interfacing (can you say PERL ?) and then port this to your web server. It will save you a ton of support headaches later down the road.
________________________________
UNIX because I majored in cryptology...
Wilfred Chau_1
Respected Contributor

Re: execute unix scripts from web.

yes, like in php, you can embed the script via a exec call.
e.g.
http://php.net/manual/en/function.exec.php

and depending on the function of the script, if it requires root privileged, you will need to suid the script (which is not recommended).

Re: execute unix scripts from web.

I am working CGI now.I will ask the details as time requires..Could please tell me any good website were i can get details for CGI.Thank you
Steven Schweda
Honored Contributor

Re: execute unix scripts from web.

> [...] Could please tell me any good website
> were i can get details for CGI.Thank you

Define "good". Is Google broken?

> You might learn something from a Web search
> for keywords, like, say:
>
> cgi shell script

Still true, I believe.