Is this perl poblem?

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

  1. #1

    Default Is this perl poblem?

    When exec is used to shell tar, and tar is piped back to stdout, after
    the apache timeout, if the download is cancelled, tar locks up and uses
    100% of the free cpu time.

    I have posted the problem in several forums, but cannot get any ideas on
    it. At this point I don't know if this is an Apache problem, FreeBSD
    core problem, gtar problem or perl problem.

    Code line is:

    exec("/usr/bin/tar cflz - $store_path
    /home/kingcart/html/store/$username");

    Anyone have any ideas on at least program/system I should be working on
    to try and resolve this?

    Thanks,

    Marshall

    Marshall Dudley Guest

  2. Similar Questions and Discussions

    1. media playback poblem...PLEAE HELP!
      Hi all, I am having poblems with my media playback component. I imported a video file and made a .flv file to play the video. I placed the swf...
    2. Off Topic: Active Perl Native Windows / cygwin perl
      I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather...
    3. Control a non-perl image viewer from perl script
      Below is a (non-finished) script that trys to run a linux viewer called eog (eye of gnome) in a script that will eventually allow me to power thru...
    4. Re : Installing CPAN Perl Modules with Activestate Perl 5. v5.8
      Hi, In the process of trying to get perl modules installed, I downloaded over 300 Activestate specific perl modules and they work fine (of the ones...
    5. Effeciency question - perl scripts v's perl exe's
      Max Adams wrote: The only existing Perl compiler is part of perl. Anything else is just a packager that puts a perl, required modules, and the...
  3. #2

    Default Re: Is this perl poblem?

    Marshall Dudley wrote:
    > When exec is used to shell tar, and tar is piped back to stdout, after
    > the apache timeout, if the download is cancelled, tar locks up and
    > uses 100% of the free cpu time.
    >
    > I have posted the problem in several forums, but cannot get any ideas
    > on it. At this point I don't know if this is an Apache problem,
    > FreeBSD core problem, gtar problem or perl problem.
    >
    > Code line is:
    >
    > exec("/usr/bin/tar cflz - $store_path
    > /home/kingcart/html/store/$username");
    >
    > Anyone have any ideas on at least program/system I should be working
    > on to try and resolve this?
    Have you tried using Archive::Tar instead of shelling out to /usr/bin/tar?

    jue


    Jürgen Exner Guest

  4. #3

    Default Re: Is this perl poblem?

    No, but I will research it.

    Thanks,

    Marshall

    "Jürgen Exner" wrote:
    > Marshall Dudley wrote:
    > > When exec is used to shell tar, and tar is piped back to stdout, after
    > > the apache timeout, if the download is cancelled, tar locks up and
    > > uses 100% of the free cpu time.
    > >
    > > I have posted the problem in several forums, but cannot get any ideas
    > > on it. At this point I don't know if this is an Apache problem,
    > > FreeBSD core problem, gtar problem or perl problem.
    > >
    > > Code line is:
    > >
    > > exec("/usr/bin/tar cflz - $store_path
    > > /home/kingcart/html/store/$username");
    > >
    > > Anyone have any ideas on at least program/system I should be working
    > > on to try and resolve this?
    >
    > Have you tried using Archive::Tar instead of shelling out to /usr/bin/tar?
    >
    > jue
    Marshall Dudley Guest

  5. #4

    Default Re: Is this perl poblem?

    It appears to not support compression.

    Marshall

    "Jürgen Exner" wrote:
    > Marshall Dudley wrote:
    > > When exec is used to shell tar, and tar is piped back to stdout, after
    > > the apache timeout, if the download is cancelled, tar locks up and
    > > uses 100% of the free cpu time.
    > >
    > > I have posted the problem in several forums, but cannot get any ideas
    > > on it. At this point I don't know if this is an Apache problem,
    > > FreeBSD core problem, gtar problem or perl problem.
    > >
    > > Code line is:
    > >
    > > exec("/usr/bin/tar cflz - $store_path
    > > /home/kingcart/html/store/$username");
    > >
    > > Anyone have any ideas on at least program/system I should be working
    > > on to try and resolve this?
    >
    > Have you tried using Archive::Tar instead of shelling out to /usr/bin/tar?
    >
    > jue
    Marshall Dudley Guest

  6. #5

    Default Re: Is this perl poblem?

    Marshall Dudley graced us by uttering:
    > "Jürgen Exner" wrote:
    > > Marshall Dudley wrote:
    > > > When exec is used to shell tar, and tar is piped back to
    > > > stdout, [...] Anyone have any ideas on at least
    > > > program/system I should be working on to try and resolve
    > > > this?
    > >
    > > Have you tried using Archive::Tar instead of shelling out to
    > > /usr/bin/tar?
    >
    > It appears to not support compression.
    tar(1) itself doesn't support compression either.

    HOWEVER:

    I found the following in `perldoc Archive::Tar`, which you no
    doubt looked at:

    | If you have the Compress::Zlib module installed, Archive::Tar
    | will also support compressed or gzipped tar files.

    So, install Archive::Tar, install Compress::Zlib, and then
    re-read the Archive::Tar docs, especially the part about the
    write() method's second argument...

    Cheers,
    Tim Hammerquist
    --
    In 1968 it took the computing power of 2 C-64's to fly a rocket to the moon.
    Now, in 1998 it takes the Power of a Pentium 200 to run Microsoft Windows 98.
    Something must have gone wrong.
    Tim Hammerquist 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