republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » running a shell script via cgi web interface
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
FreeBSD traffic shaping - finding the right scheduler »
« I guess permissions are important.  
AuthorAll Replies

pablo2525

join:2003-06-23
·TekSavvy Solutions..

reply to Dennis
Re: running a shell script via cgi web interface

I'm running `sh' scripts as CGI's without any issue.

I made the following modification to my `vhosts.d' `conf' file:

apache code:
        ...
AddHandler cgi-script sh
</Directory>

and my shell scripts have to end with `.sh' To get around having to parse input, I symlink to the actual script as follows: base name + _ + switch

The shell script itself tears $0 apart to find out the switch to use.

Cheers,

--
pablo
openSUSE 11.0;KDE
ISP: TekSavvy DSL; backhauled via a 6KM wireless link


Dennis
Premium,Mod
join:2001-01-26
Algonquin, IL
·AT&T Yahoo

Host:
Chicago
Users Find Hot Deals
Users find Hot Dea..
Requests for Hot D..
Home Repair & Impr..
said by pablo2525 See Profile :

I made the following modification to my `vhosts.d' `conf' file:
I don't have a "vhosts.d" file...only a httpd.conf one which seems to have something similar

--
My Blog. Because I desperately need the acknowledgement of others.

Visit the Judd Family website to see my kids!

pablo2525

join:2003-06-23
·TekSavvy Solutions..

Howdy,

Ugh, my writing wasn't especially clear. I'm sorry. Let me try again.

In /etc/apache2/vhosts.d, my `conf' file has the above entry. In my case, I created a random file named `hostname`.conf baseed on `vhost.template'

My distribution is openSUSE but I figure the above is true in most (all?) apache installations. Of course the root pathing may be different.

I hope the above helps.

Cheers,
--
pablo
openSUSE 11.0;KDE
ISP: TekSavvy DSL; backhauled via a 6KM wireless link
-
Forums » Tech and Talk » OS and Software » All Things UnixFreeBSD traffic shaping - finding the right scheduler »
« I guess permissions are important.  


Tuesday, 01-Dec 22:07:44 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [129] Comcast Releasing Promised Usage Meter
· [67] Baltimore To Ban Lazy Cable Installs
· [56] Broadband Killed The Game Console
· [48] Rogers Unveils The ISP Dream Model
· [40] Rural Carriers Quickly Embracing Fiber
· [40] Latest Consumer Reports Survey Not Kind To AT&T
· [35] Charter Exits Chapter 11
· [34] ACTA: Global Three Strikes
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [24] Midcontinent Socked With Easement Lawsuit
Most people now reading
· Am I the only one that loves to work in IT? [No, I Will Not Fix Your #@$!! Computer]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Considering Leaving Vonage, who should I Consider? [VOIP Tech Chat]
· Data Usage Meter Launched [Comcast HSI]
· [Internet] Gaming problem for "Heroes of Newerth" ( New bell Upd [Bell Canada]
· Ooma changing features [VOIP Tech Chat]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Windows 7 boot manager editing questions [Microsoft Help]
· [Business] how to bridge a smc 8014 business class modem [Comcast HSI]
· Bell TV Online w/ Teksavvy [TekSavvy]