Download a file in Perl

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Download a file in Perl

    I have each month to download all the logfiles from
    my web server as GZ compressed files.

    From each domain access and referer log files.

    The downlaod is only possible in http

    Username and password is required.

    The proposed name what gives the server
    for the downlaod has to be changed.


    I work in Perl since 1997, but I have no idea
    how to perform this task


    A nice extra would be to decompress the files
    also, because all the log files are later stored in
    one single zip file

    --
    Roland Mösl
    [url]http://www.pege.org[/url] Clear targets for a confused civilization
    [url]http://web-design-sutie.com[/url] Web Design starts at the search engine

    Roland Mösl Guest

  2. Similar Questions and Discussions

    1. download Modules from CPAN and then load into Perl Question
      Hello, I am still in the first week or 2 of trying to learn Perl and get my servers patched to what I need. I have a question about the Perl...
    2. where should perl create a file for user download?
      greetings, I am writing a small perl script that takes user input via a Web form, writes a few files to my server, creates a zip archive that...
    3. Download Beginning Perl ebook
      Motherofperls@aol.com writes: You're perfectly entitled to do this under the terms of the Creative Commons Attribution-NoDerivs-NonCommercial...
    4. [ADMIN] Download Beginning Perl ebook
      It was Wednesday, August 13, 2003 when Motherofperls@aol.com took the soap box, saying: : I've posted the ebook Beginning Perl for downloading at: ...
    5. [ADMIN] Download Beginning Perl ebook
      Casey West wrote: If it's this book: http://learn.perl.org/library/beginning_perl/ folks should get it from there :~)
  3. #2

    Default Re: Download a file in Perl

    Roland Mösl wrote:
    > I have each month to download all the logfiles from
    > my web server as GZ compressed files.
    >
    > From each domain access and referer log files.
    >
    > The downlaod is only possible in http
    >
    > Username and password is required.
    >
    > The proposed name what gives the server
    > for the downlaod has to be changed.
    >
    >
    > I work in Perl since 1997, but I have no idea
    > how to perform this task
    >
    >
    > A nice extra would be to decompress the files
    > also, because all the log files are later stored in
    > one single zip file
    >
    Use LWP to "get" a file using http:

    perldoc lwpcook

    To unzip, you could use system/backticks/or one of many modules
    avaialble on CPAN.


    J. Gleixner Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139