in reply to Post file to hard disk

perl somescript > somefile.html. If the output is HTML that is. However, I downvoted your post because:

Basically, you shouldn't just say what you are trying to do, but rather detail your specific situation. For instance, if I understand your situation correctly, you could have phrased it thus:

"I am having some problems with a CGI script I am writing. When I run it, the output, of course, appears in my browser window. I would like it instead to go to a file. Any suggestions on how I could do this? Thanks in advance."

Also, it is not specifically relevant to Perl. This is more either a shell redirection issue or a browser usage issue. Any CGI, not just one written in Perl, could be attached to this question. And even if it were, this really belongs in Seekers of Perl Wisdom. Perl Monks Discussion is for discussion related to the Perl Monks site itself, not necessarily specifically Perl stuff.

Update: Your post has been moved to SOPW, thanks to chromatic.

Replies are listed 'Best First'.
Re: Re: Post file to hard disk
by Anonymous Monk on Apr 18, 2001 at 01:23 UTC
    I'll try and be more specific next time.. hmm.. though it seems you were able to figure it out.. mew :).
Re: Re: Post file to hard disk
by Anonymous Monk on Apr 18, 2001 at 02:16 UTC
    <http> <body> OOps.. does this look better?

    Will this line of code work if my verio uses ftp.pm ..?
    Thanx in advance.. :)

    Lisa.

    use NET::FTP;
    my $hostname='superwarez.com';
    my $user='warez';
    my $password='warez';
    my $ftp=Net::FTP -> new($hostname) or die ("Connect failed");
    $ftp->login($username,$password);
    $ftp->binary;
    $ftp->cwd("/pub/uploads");
    $ftp->put("mystuff.txt");
    $ftp->get("warezlist.txt");
    $ftp->quit
Re: Re: Post file to hard disk
by Anonymous Monk on Apr 18, 2001 at 02:17 UTC
    <http> <body> OOps.. forgot the html thing... br>
    Will this line of code work if my verio uses ftp.pm ..?
    Thanx in advance.. :)

    Lisa.

    use NET::FTP;
    my $hostname='superwarez.com';
    my $user='warez';
    my $password='warez';
    my $ftp=Net::FTP -> new($hostname) or die ("Connect failed");
    $ftp->login($username,$password);
    $ftp->binary;
    $ftp->cwd("/pub/uploads");
    $ftp->put("mystuff.txt");
    $ftp->get("warezlist.txt");
    $ftp->quit
Re: Re: Post file to hard disk
by Anonymous Monk on Apr 18, 2001 at 02:13 UTC
    Will this line of code work if my verio uses ftp.pm ..? Thanx in advance.. :) Lisa. use NET::FTP; my $hostname='superwarez.com'; my $user='warez'; my $password='warez'; my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); $ftp->login($username,$password); $ftp->binary; $ftp->cwd("/pub/uploads"); $ftp->put("mystuff.txt"); $ftp->get("warezlist.txt"); $ftp->quit