P
pj
Hi
I am trying to call a perl script from SOAP server side perl script,
but no luck.
following is the SOAP server perl script where I call other perl
script. read_query function writes to a file okay, but does nothing
for the two system calls after that. Any ideas? thanks in advance
#!/usr/bin/perl
use lib '../lib';
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('predictor')
-> handle;
package predictor;
sub read_query{
my $file=$_[0];
open (fileOUT, "> dBDataFiles/$file");
foreach $line (@_)
{
print fileOUT "$line";
}
close (fileOUT);
# Problem:: nothing happens for the nest two system commands.
system ("/bin/echo hello > dBDataFiles/test");
system ("/usr/bin/perl /home/nsf470/out.pl");
return "done"."\n\n";
}
I am trying to call a perl script from SOAP server side perl script,
but no luck.
following is the SOAP server perl script where I call other perl
script. read_query function writes to a file okay, but does nothing
for the two system calls after that. Any ideas? thanks in advance
#!/usr/bin/perl
use lib '../lib';
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('predictor')
-> handle;
package predictor;
sub read_query{
my $file=$_[0];
open (fileOUT, "> dBDataFiles/$file");
foreach $line (@_)
{
print fileOUT "$line";
}
close (fileOUT);
# Problem:: nothing happens for the nest two system commands.
system ("/bin/echo hello > dBDataFiles/test");
system ("/usr/bin/perl /home/nsf470/out.pl");
return "done"."\n\n";
}