Hi,
why don't you use "readpipe", which lets you avoid the intermediate data
file:
...
my $data = readpipe ($cmd);
...
Helmut
>
> I tried this (inside the handler):
>
> ...
> my $cmd = '/opt/reports/bin/getdata';
> system($cmd, @params);
> if ( open(DATA, '/opt/reports/var/data.txt') ) {
>
I tried this (inside the handler):
...
my $cmd = '/opt/reports/bin/getdata';
system($cmd, @params);
if ( open(DATA, '/opt/reports/var/data.txt') ) {
local $_;
while () { $r->print($_) }
close DATA;
} else {
$r->print("Can´t read data");
}
...
The program getdata put output in /op
You could use IPC::Run, which lets you pipe data to an executable, then
read the result back:
use strict;
use IPC::Run qw(start finish pump);
sub handler
{
my $r = shift;
my $html = qw
{
Foo
Bar
Baz
The uploaded file
GTop-0.13.tar.gz
has entered CPAN as
file: $CPAN/authors/id/S/ST/STAS/GTop-0.13.tar.gz
size: 26583 bytes
md5: bc2fa8e43fb607a5a64e36b9a2661751
Changes since 0.12:
- Solaris doesn't have a typedef for u_int64_t, try to add one [Pete
Geenhuizen <[EMAIL PROTECTED]>]
[Please keep it on the list...]
On Wed, 2004-04-28 at 15:34, Tyler Rorabaugh wrote:
> I need object persistance between servers
> Say for example you had a person object
> That container first / last name
> I want the object to contain the same data for each session
> Across each server.
The way
Alejandro Galue wrote:
Hello All,
I´m using mod_perl2 and Apache2 over Fedora Core 1.
I have a handler that need to call an external program to complete the
request.
This program put its output to a file, and then I read this output from the
handler (after system function) to complete the request
Hi,
system will wait until the executed shell-script has finished. I'd
rather guess that you are not allowed to call the commandline programm
you'd like to call.
Did you get any thing in the error_log? How do you call the system-command:
* system
*``
* qx
Maybe you could show us the code you'r
Pete Geenhuizen wrote:
Don't know what happened to this email originally, any way here's what I
sent.
Stas,
What I just found is that Solaris has init64_t. I don't know
any more about it, I noticed that during a configure of libgtop that
u_init64_t wasn't found, but init64_t was, don't know if tha
On Wed, 2004-04-28 at 14:45, Tyler Rorabaugh wrote:
> Anyone know of examples of
> mod_perl Object persistance across multiple servers
> or of availble Mod_perl object application servers?
That could mean just about anything. Maybe if you explain what problem
you are trying to solve, we could m
Hello All,
I´m using mod_perl2 and Apache2 over Fedora Core 1.
I have a handler that need to call an external program to complete the
request.
This program put its output to a file, and then I read this output from the
handler (after system function) to complete the request.
My problem is (I a
On Wed, 28 Apr 2004 14:45:03 -0400
"Tyler Rorabaugh" <[EMAIL PROTECTED]> wrote:
> Anyone know of examples of
> mod_perl Object persistance across multiple servers
> or of availble Mod_perl object application servers?
You might look into memcached at this URL:
http://www.danga.com/memcache
J G wrote:
Thanks for the suggestions.
I should have mentionned that the machine has dual Xeon
processors and 2Gb of RAM.
Running top shows a ridiculously low load average.
This server runs only 2 sites, both with the same Apache and
mod_perl versions, but different installs.
Strangely enough the
Anyone know of examples of mod_perl Object persistance across multiple
servers or of availble Mod_perl object application servers?
-tr
Thanks for the suggestions.
I should have mentionned that the machine has dual Xeon
processors and 2Gb of RAM.
Running top shows a ridiculously low load average.
This server runs only 2 sites, both with the same Apache and
mod_perl versions, but different installs.
Strangely enough the other site
On Wed, 2004-04-28 at 12:09, [EMAIL PROTECTED] wrote:
> I keep on getting this same error in the logs:
> ModPerl::Registry: 103:Software caused connection abort at
> /path/to/script line number
I believe that comes from a system call, not from mod_perl or apache
itself.
> My suspicion is that the
I keep on getting this same error in the logs:
ModPerl::Registry: 103:Software caused connection abort at
/path/to/script line number
I am running mod_perl 1.99_09 with Apache 2.0.47
I have no idea what causes this.
I have been getting complaints that some users couldn't log on
to the web app, a
This is my first attempt at GTop.Unfortunately Solaris doesn't
support a recursive grep, and equally unfortunately I wan't able to find
u_init64_t anywhere.With some Googleing around I came across
this fix to compiling libgtop on Solaris 8 and 9" For the
meantime, I patched glibtop.h to have#ifnde
This is my first attempt at GTop.
Unfortunately Solaris doesn't support a recursive grep, and equally
unfortunately I wan't able to find u_init64_t anywhere.
With some Googleing around I came across this fix to compiling libgtop on
Solaris 8 and 9
" For the meantime, I patched glibtop.h to have
18 matches
Mail list logo