The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10.5 perl and cron job execution problem sonu2die4 SUN Solaris 1 02-10-2009 11:16 AM
Problem while execution of second set of commands ran16 Shell Programming and Scripting 6 06-16-2008 01:31 PM
Problem while execution of second set of commands ran16 Shell Programming and Scripting 0 06-15-2008 10:46 AM
problem with shell script execution anju Shell Programming and Scripting 2 05-08-2008 01:50 AM
Find & tar execution problem ianf Shell Programming and Scripting 3 05-24-2002 09:40 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-27-2009
Preeti_t Preeti_t is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
CGI execution problem on Unix

Hello everyone,

I have developed a cgi application on windows. i have created a folder in webapps of tomcat, within that a WEB-INF folder and in that cgi folder.
This cgi folder contains one executable. The web.xml is as follows:
Code:
<servlet>
        <servlet-name>cgi</servlet-name>
        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>cgiPathPrefix</param-name>
          <param-value>WEB-INF/cgi</param-value>
        </init-param>
         <init-param>
		   <param-name>passShellEnvironment</param-name>
		   <param-value>true</param-value>
	    </init-param>
        <init-param>
		  <param-name>executable</param-name>
		  <param-value>cmd /c</param-value>
	    </init-param>
        <load-on-startup>5</load-on-startup>
    </servlet>

	<servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>
now when i run this executable from the url it runs.
I want to do this same thing in unix but this is not working. for unix i have changed the above xml as follows:

Code:
           <init-param>
		  <param-name>executable</param-name>
		  <param-value>/bin/ksh -c</param-value>
	    </init-param>
the rest is same. Can someone plz help me wit dis????

Last edited by Yogesh Sawant; 05-27-2009 at 04:22 PM.. Reason: added code tags
  #2 (permalink)  
Old 05-28-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Is there anything left in the Tomcat error log, and what exactly is not working? You saw code displayed or got some kind of internal server error page?
  #3 (permalink)  
Old 05-28-2009
Preeti_t Preeti_t is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
Hi

actually i am getting HTTP Status 404 - description The requested resource () is not available.

Thanks
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 03:55 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