Perl Programming Help:
Win32 Programming Help:
dos command via perl
Jan 30, 2001, 6:45 AM
I have a perl script that call a .cmd file that contains dos commands ( specially xcopy command).
Through IE5 it works perfectly, but with Netscape,
when the command dos are executed, a pop up window appears asking me to save my perl script...
In anyways, the dos commands were executed.
But how can i get rid of this window ???
May 8, 2001, 10:51 AM
It sounds like you're not sending the Content-type MIME header at the beginning of your cgi script. IE might be assuming 'text/html' when no type is specified, where Netscape might default to saving the file when no MIME type is specified.
In any case, make sure that you have this line before any other print statements:
Or if you are using the CGI module, do this:
print "Content-type: text/html\n\n";
my $query = new CGI;