Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and start the script from the browser, I get the following result:use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); system ("/usr/bin/perl metaStk.pl"); print header("text/plain"), start_html(), (a {href=>'metafile.gz'}, "download data"), end_html();
Nothing can be downloaded. The 'metaStk.pl' program is supposed to generate a compressed file "metafile.gz" after execution. If I run the program individually, I'm sure I can get the compressed file. But still I can't get what I want from the cgi program. Any suggestion? thanks in advance! yjin"Tue Jul 16 11:02:02 2002:Exiting metaStk.pl Content-Type: text/plain +download data."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system function
by vladb (Vicar) on Jul 16, 2002 at 17:04 UTC | |
|
Re: system function
by Cine (Friar) on Jul 16, 2002 at 22:56 UTC |