CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Win32 Programming Help:
dos command via perl



Jan 30, 2001, 6:45 AM

Post #1 of 2 (3486 views)
dos command via perl Can't Post

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

Post #2 of 2 (3444 views)
Re: dos command via perl [In reply to] Can't Post

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:

print "Content-type: text/html\n\n";

Or if you are using the CGI module, do this:

my $query = new CGI; 
print $query->header;

Spencer Christensen


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives