Ask a Question related to PERL Miscellaneous, Design and Development.
-
Marshall Dudley #1
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
-
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... -
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... -
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... -
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... -
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... -
Jürgen Exner #2
Re: Is this perl poblem?
Marshall Dudley wrote:
Have you tried using Archive::Tar instead of shelling out to /usr/bin/tar?> 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?
jue
Jürgen Exner Guest
-
Marshall Dudley #3
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?
>
> jueMarshall Dudley Guest
-
Marshall Dudley #4
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?
>
> jueMarshall Dudley Guest
-
Tim Hammerquist #5
Re: Is this perl poblem?
Marshall Dudley graced us by uttering:
tar(1) itself doesn't support compression either.> "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.
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



Reply With Quote

