and im not ableto see the output of my cgi file on the browser.. Can anyone help me out.
I have an html file...from which i want to go open a cgi file...
index.html is in NEW_ONE folder
menu.cgi is in NEW_ONE folder too.
index.html
Expand|Select|Wrap|Line Numbers
- <HEAD>
- <TITLE>CP Web Tool</TITLE>
- </HEAD>
- <body>
- <font size=3>
- <A HREF="/cgi-bin/cgidir/ebh022/CP_tool/NEW_ONE/menu.cgi">LINK TO CGI PAGE </A>
- </body>
- </HTML>
Expand|Select|Wrap|Line Numbers
- #!/org/www/cgidir/iden_ergo/ebh022/perl/perl
- BEGIN
- {
- unshift( @INC, "cgi-lib" );
- unshift( @INC, "perl/lib/site_perl/5.005" );
- unshift( @INC, "perl/lib/site_perl/5.005/PA-RISC1.1" );
- }
- print <<EOF;
- Content-type: text/html
- <HTML>
- <HEAD>CGI FILE
- </HEAD>
- <BODY BGCOLOR="WHITE">
- THIS IS THE BODY OF THE CGI FILE..
- </BODY>
- </HTML>
- EOF
Now the problem I'm getting is ... from the html file im not able to go the cgi file...
when i click on the link of the html page...it goes to the next page where it displays the MENU.CGI file contents (i.e. #!/org/www/cgidir/iden_ergo/ebh022/perl/perl
BEGIN
.....
)
whereas it shud give the result of MENU.CGI..
can u tell me what is the problem????
is there anything wrong with the path that im givin...
#!/org/www/cgidir/iden_ergo/ebh022/perl/perl
but other files on the server are working with this path (i work in a company, so the server of that company), so i dont think this is the issue..
please let me know...im not able to move ahead without this.
Thanks
Ravi