I am going through a chapter in a perl text on cgi - trying to master it.  
Appartently, I need to transfer a cgi script to the ISP's server, then invoke 
it with the browser.  Since my ISP does not allow cgi scripts to be run on 
their server, I have wriiten a perl script (see below) that executes the cgi 
script locally, captures the html output, and ftp's it to the server.  The 
next step would be for the original script to invoke the browser against the 
html on the server.  This is what I don't know how to do, and was wandering 
if there existed a module at CPAN for this.

 
use Net::FTP;
use HTML::ParseBrowser;
use strict;
 
`perl  cgi1.cgi > cgi1.html`;
 
my $ftp = Net::FTP->new
(
  "my.sanbrunocable.com",
  Timeout => 30
) or die "Could not connect. \n";
 
my $userName = "user name goes here";
my $passWord = "pass word goes here";
 
$ftp->login($userName, $passWord)
      or die "Could not log in.\n";
 
my $localFile = "cgi1.html";
 
$ftp->put($localFile)
      or die "Can not put file. \n";

(Now the rest of the code for invoking the brwser goes here!)






On Thursday 10 July 2003 08:38 pm, you wrote:
> Frank B. Ehrenfried wrote:
> > Does anyone know how to invoke the linux/KDE web browser from a perl =
> > scrpt?
>
> Well presumably with either a 'system' or using the backticks like most
> other IPC, but I doubt that is going to get you much unless Konqueror is
> far cooler than I am aware (which is certainly possible).  Then there is
> the whole issue of whether your display is set correctly in the shell
> you are invoking, whether it has draw access to the X server, etc, etc,
> etc.
>
> Step back a couple of steps and give us some background, what are you
> hoping to accomplish?
>
> http://danconia.org

-- 
Frank B. Ehrenfried

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to