parani 0 Newbie Poster

Hi,

I am having two scripts [Hello.pl and Hi.pl]

Hello.pl

#!/usr/bin/perl
printf "Hello world";
system("perl Hi.pl")

Hi.pl

#!/usr/bin/perl
printf "Hi";

When I tried to execute the script "Hello.pl" in command prompt,the output is as below

D:\Perl\bin>perl hello.pl
Hello world
Hi

I kept this two scripts in TOMCAT and tried to invoke the Script[Hello.pl] through a HTML page.It looks the "Hello.pl" is invoked and generated the output but it failed to invoke the script "Hi.pl".

Can any one of you explain where am I going wrong??

/Parani.