I have a perl cgi script "cgi1" which I'm calling successfully from apache. I'm making a call to a shell script from cgi1 (my.sh) and it is executing successfully with no issues, but I wanna know there are several "echo" statements written in my shell script,

How can I make all thos echo statements also gets printed in the browser when I call my cgi script

I could be wrong, I can only go by what he posted, but his code has never loaded the CGI module so none of the CGI modules methods should even be working. -------------------------------------------------

THe line no 8 is executing successfully and my drop down list is getting populated with @vlist values successfully, but when I select any of the value from the list its not assigning its value correctly to $branch

That way all the CGI modules methods will be available to your program, otherwise it looks like your script should abort as soon as it gets to a line that calls one of the CGI modules methods. -------------------------------------------------

Please use the code tags when posting your code and do not include the line numbers!!

In Reply To

THe line no 8 is executing successfully and my drop down list is getting populated with @vlist values successfully, but when I select any of the value from the list its not assigning its value correctly to $branch

The code you posted doesn't do that, instead it gives this error.

Quote

Can't locate object method "new" via package "CGI" at ... line 10

Once you fix that error, you get this one for lines 19 & 20:

Quote

Undefined subroutine &main::p called

Fix those problems, then add these lines near the top and fix the problems that they point out.