|
First
|
Prev |
Next
|
Last
Pages: 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610
perl CPU utilization and socket I/O I have a perl cgi script that reads from the network and outputs about 40K per second to the caller. The script is averaging about 15-25% CPU utilization, when it isn't doing much other than reading from the network, parsing the message, and printing it. I want to get this CPU utilization down. Things I have t... 24 Feb 2007 18:53
Running Java file and capturing output Hi, I need to call a Java class and capture the output it generates and send it to a file. I tried using the system command: system("/usr/local/bin/java, </var/log/MyJavaClass', &> /var/tmp/ history.html"); However i get the following error: sh: /var/log/MyJavaClass, &> /var/tmp/history.html: cannot open ... 21 Feb 2007 16:26
FAQ 4.55 How do I process an entire hash? This is an excerpt from the latest version perlfaq4.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . --------... 21 Feb 2007 15:23
fork()-ing questions In researching the Perl fork() command, I've come across many examples of code and have been able to ascertain that when fork() is called, the parent process retains it's own PID wil the child process takes a PID of 0, at least in relation to the parent process. This is pretty simple to see and understand, except f... 24 Feb 2007 18:53
CGI:Session & MS SQLServer Hi All, I've been running an application for some time that uses CGI::Session and it's MySQL Driver. However, I'd like to make the application database portable and I'm unable to get it to work correctly with SQLServer2005. I have written a dummy driver called "mssql" based on the default DBI driver. It cre... 28 Feb 2007 12:07
Passing an array of arrays to an external function I need to pass a list of arrays to a function gnuplot() in the CPAN module Chart-Graph-3.2, like in the example at the bottom (from http://search.cpan.org/~caidaperl/Chart-Graph-3.2/Graph/Gnuplot.pm). Say I wish to plot the following functions (as in the example): @plots = ($data, $fnc1, $fnc2); Then I can't d... 21 Feb 2007 15:54
printing all commands' return value in debugger I'm often using the debugger as a scratchpad to try things out. I'd like to see the return value of all commands I type, so I don't have to start each line with "p"- that is, something like: perl -de 1 DB<1> $a=5 5 DB<2> $a 5 DB<3> print $a 5 1 I can't figure out how to twist the debugger commands/opti... 24 Feb 2007 18:53
how to handle Multi Value Hash output? Hi all! I have a script that returns one SNMP OID from an SNMP Agent. It works perfectly: #!/usr/bin/perl -w use strict; use IO::Handle; use Net::SNMP; my $agentIdUniqueId = '.1.3.6.1.4.1.1977.1.1.2.1.0'; sub getuid { my ($session, $error) = Net::SNMP->session ( -hostname => shift || $_[... 24 Feb 2007 18:53
Subclassing CGI::Pretty dies instantly in ->new , bug? I created a subclass of CGI::Pretty and it instantly dies: $ /data/www-jeremy/cgi-bin/cgi-jeremy Undefined subroutine Jeremy::CGI::delete at /data/www-jeremy/cgi-bin/cgi-jeremy line 9 Line 9 is: my $query = Jeremy::CGI->new; If I modify the class to inherit from CGI then it works. Is t... 24 Feb 2007 18:53
Newlines and deprecations I have a perl script that parses a file of backup failures. I have it print what failed and how many times it's failed. The log file lines look like this: c3devweb3 C:\\ c3devweb3 D:\\ This is the name of the server and what failed. The scripts seems to be working okay but there are some problems in the out... 24 Feb 2007 18:53 |