When does a process become defunct

2005-03-27 Thread Ramprasad A Padmanabhan
Hi all, I am writing a daemon in perl , where the parent just forks on some requests and the children take over. But I found many child processes becoming defunct. I am not sure why. I am catching SIG_CHLD alright. To reproduce the problem I have just written a skeleton of my script. The parent

Re: Statistics::R

2005-03-27 Thread Jonathan Paton
On Sun, 27 Mar 2005 16:35:20 -0600, Luis N <[EMAIL PROTECTED]> wrote: > What do you suppose this could be about? > > This is perl, v5.8.5 built for i386-freebsd-64int > > main::(-e:1): 42 > DB<1> use Statistics::R ; > > DB<2> $R->startR ; > Can't call method "startR" on an undefined value

Statistics::R

2005-03-27 Thread Luis N
What do you suppose this could be about? This is perl, v5.8.5 built for i386-freebsd-64int main::(-e:1): 42 DB<1> use Statistics::R ; DB<2> $R->startR ; Can't call method "startR" on an undefined value at (eval 10)[/usr/local/lib/perl5/5.8.5/perl5db.pl:620] line 2. -- To unsubscribe, e-m

Re: suidperl.

2005-03-27 Thread Jonathan Paton
> ... > > Yes, i got the root access and need to modify the > smb.conf from a non-root account. > > > > > * Using the existing samba web administration interface is not > > possible - even if automated. > > This is true, because i'm making a script to create > new printers automagical

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Randy W. Sims
Offer Kaye wrote: On Sun, 27 Mar 2005 18:19:22 +0300, Octavian Rasnita wrote: Have you noticed that "-l" parameter? If it is used, the perldoc command just show the directory where the module is installed. Teddy Sigh... did you even try out my example? He most likely did. Your example works fine

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Offer Kaye
On Sun, 27 Mar 2005 18:19:22 +0300, Octavian Rasnita wrote: > Have you noticed that "-l" parameter? > If it is used, the perldoc command just show the directory where the module > is installed. > > Teddy > Sigh... did you even try out my example? Please read my answer *carefully*, the "perldoc

Re: very new - need help with regular expressions

2005-03-27 Thread Zeus Odin
"Brett Williams" <[EMAIL PROTECTED]> wrote in message ... > > That was a big help. I now have another problem however. I had assumed > that adding a line number preceding the prices would be a trivial > matter, however what i thought would work is not doing so. Here is the > code ive tried. > > [sn

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Octavian Rasnita
Have you noticed that "-l" parameter? If it is used, the perldoc command just show the directory where the module is installed. Teddy - Original Message - From: "Offer Kaye" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: duminica, 27 martie 2005 18:02 PM Subject: Re: ideintifying whethe

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Offer Kaye
On Sun, 27 Mar 2005 09:27:09 -0500, Randy W. Sims wrote: > > or even > > perldoc -l Module::Name > Nope, that won't do. What if a module is installed but has no pod file or embedded pod? Example: > perldoc -l Pod::Perldoc No documentation found for "Pod::Perldoc". > perl -MPod::Perldoc -e'prin

Re: how to mail ??

2005-03-27 Thread Nikhil
Why not use a module Mail::Sendmail grab the output relatively into an array configure the mail parameters and send the output array as the mailbody. looks fine. if the output is needed as an attachment , use the system command uuencode with mailx that should do. Wiggins d'Anconia wrote: Moon, Joh

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Nikhil
Just execute perl and say "use forexample : perl -e "use Net::SNMP;" it will throw errors if the module "Net::SNMP" was not installed , if not your module is installed then :) Manish Sapariya wrote: Hi list, How do I know whether a given module is installed on machine or not? Thanks and Regards, M

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread M Nikhil \(Juno\)
Just execute perl and say "use forexample : perl -e "use Net::SNMP;" it will throw errors if the module "Net::SNMP" was not installed , if not your module is installed then :) "Manish Sapariya" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi list, > How do I know whether a given

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Randy W. Sims
Edward Wijaya wrote: On Sun, 27 Mar 2005 20:28:42 +0800, Manish Sapariya <[EMAIL PROTECTED]> wrote: Hi list, Hi How do I know whether a given module is installed on machine or not? perl -MModule::Name -e 'print "it is installed\n";' or it's simpler variant perl -MModule::Name -e1 or even perld

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Edward Wijaya
On Sun, 27 Mar 2005 20:28:42 +0800, Manish Sapariya <[EMAIL PROTECTED]> wrote: Hi list, Hi How do I know whether a given module is installed on machine or not? perl -MModule::Name -e 'print "it is installed\n";' or it's simpler variant perl -MModule::Name -e1 Hth -- Edward WIJAYA Singapore -- To

Re: CPAN

2005-03-27 Thread Offer Kaye
On Sun, 27 Mar 2005 14:52:01 +0300, Octavian Rasnita wrote: > Hi, > > Does anyone know why CPAN shell cannot use the FTP addresses I defined? > > I saw that it waits very much time for each one, then tells that that > address was not accessible and passes to the next one, waits a lot again, > and

Re: ideintifying whether a module is already installed or not

2005-03-27 Thread Mark Taylor
Hi list, How do I know whether a given module is installed on machine or not? Thanks and Regards, Manish Hi Manish - The way I check to see if a module is installed perl -e "use ModuleName;" (eg. perl -e "use XML::Simple:" If you get an error, then it is not installed. Now I use ActiveState Perl o

ideintifying whether a module is already installed or not

2005-03-27 Thread Manish Sapariya
Hi list, How do I know whether a given module is installed on machine or not? Thanks and Regards, Manish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CPAN

2005-03-27 Thread Octavian Rasnita
Hi, Does anyone know why CPAN shell cannot use the FTP addresses I defined? I saw that it waits very much time for each one, then tells that that address was not accessible and passes to the next one, waits a lot again, and so on. It works fine with http addresses however. Thanks. Teddy --

Re: suidperl.

2005-03-27 Thread Jonathan Paton
> This doesnt works becouse the owner of the file is 'root'. How can i solve > this? using suidperl? Little information, so I make assumptions: * You have root access - otherwise suidperl isn't going to help. * You need to modify smb.conf from a non-root account. * Using the existin

Re: ending attributes in XML::Writer

2005-03-27 Thread Offer Kaye
On Sat, 26 Mar 2005 17:02:11 +, Nuno Morgadinho wrote: > I'am using XML::Writer to create a XML file that is then read by another > application. This other application is expecting a XML in the form of > (with the slash in the starttag ending the attribute) but > using XML::Writer I can't find

Re: Beginner question

2005-03-27 Thread Offer Kaye
On Fri, 25 Mar 2005 14:07:02 -0800, Kyle Lampe wrote: > > while ( $lineFile1 = && $lineFile2 = ) { [...snip...] > But it's complaining about my &&. How can I increment the contents of > 2 files like this at once? > According to "perldoc perlop", the && operator has higher precedence than th