[26523] in Perl-Users-Digest
Perl-Users Digest, Issue: 8673 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Nov 16 14:05:23 2005
Date: Wed, 16 Nov 2005 11:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 16 Nov 2005 Volume: 10 Number: 8673
Today's topics:
Re: "Killed" Message On Linux (Running From BASH) <hal@thresholddigital.com>
Re: "Killed" Message On Linux (Running From BASH) <hal@thresholddigital.com>
Re: LOESS (aka LOWESS) xhoster@gmail.com
Re: LOESS (aka LOWESS) <no_given_address@landofthelost.net>
Re: LOESS (aka LOWESS) <no_given_address@landofthelost.net>
Re: strange problem with system() and backtick operator <tadmc@augustmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 16 Nov 2005 11:20:48 -0500
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Re: "Killed" Message On Linux (Running From BASH)
Message-Id: <MO6dncJQnsrCwebeRVn-gg@comcast.com>
Gregory Toomey wrote:
> Hal Vaughan wrote:
>
>> I've tried Googling this and get a high noise-to-signal ratio.
>>
>> I'm running Perl scripts on Linux (Debian, Sarge), from the command line
>> (in
>> bash), and I get a "Killed" message. I can't find enough to verify this
>> is
>> coming from Perl or bash or where.
>
> Large process running out of virtual memory?
>
> gtoomey
That was my first thought, but it's one Perl program, on 1.5 GB of memory,
that had run before, a number of times, on a system with 1/2 that amount
(and this system has fewer daemons and such running). I would also think
if that were the case, running it under the same conditions every time
would produce the same results. It doesn't.
Hal
------------------------------
Date: Wed, 16 Nov 2005 11:22:25 -0500
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Re: "Killed" Message On Linux (Running From BASH)
Message-Id: <MO6dnf1QnspdwebeRVn-gg@comcast.com>
Lars Kellogg-Stedman wrote:
>> At the least, I'd like to know what is issuing this "Killed" message (is
>> this what happens when another program kills a Perl script?), or what
>> could be causing this.
>
> Some shells (e.g., bash) print this message if a process dies due to
> receiving a SIGKILL. Try this:
>
> In xterm 1, run:
>
> sleep 30
>
> In xterm 2, run:
>
> killall -9 sleep
>
> You'll probably see the message "Killed" in xterm 1. I'm not sure what
> would be causing this -- it is unlikely that something is sending
> spontaneous KILL signals to your processes, unless (a) you're running
> extremely low on memory and (b) the Linux OOM killer kills processes in
> this fashion.
>
> -- Lars
>
Aha!
That's it. With that info, I tracked down a program that wasn't supposed to
be running (I'm not finished testing it yet), that tracks down and kills
certain programs if they don't register in a database first. Somehow a
stray instance was still in memory, killing other programs.
Thanks!
Hal
------------------------------
Date: 16 Nov 2005 17:14:38 GMT
From: xhoster@gmail.com
Subject: Re: LOESS (aka LOWESS)
Message-Id: <20051116121438.261$FA@newsreader.com>
"Mr. No Address" <no_given_address@landofthelost.net> wrote:
> Been some time since I was here and now I'm almost fearful to post.
> Have I googled enough? Have I searched CPAN enough? Did I read all the
> books? Have I done everything reasonable to try and answer my question
> before posting here? Ah, what the hell...
>
> Locally Weighted Robust Regression (LOWESS or LOESS). Boss says it's
> the thing to use for a particular job that needs to be done. Is there a
> Perl module out there that does this?
Did the boss say you had to do it in Perl? I'd seriously consider using R
for this, perhaps interfaced to Perl.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Wed, 16 Nov 2005 10:17:43 -0700
From: "Mr. No Address" <no_given_address@landofthelost.net>
Subject: Re: LOESS (aka LOWESS)
Message-Id: <dlfr0s$b70$1@news.nems.noaa.gov>
A. Sinan Unur wrote:
> "Mr. No Address" <no_given_address@landofthelost.net> wrote in news:dldq1l$tkt$1@news.nems.noaa.gov:
>>Locally Weighted Robust Regression (LOWESS or LOESS). Boss says it's
>>the thing to use for a particular job that needs to be done. Is there a
>>Perl module out there that does this?
>
>
> I am not sure why one would use Perl for this task. There is a regression
> module which I have used in the past, and could be used to compute the
> local weighted regressions at each point.
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/ch_data7.html
> http://www.itl.nist.gov/div898/handbook/pmd/section1/pmd144.htm
>
> I would be much more inclined to use a numeric computation package for
> this, say, S-Plus (or R), MatLab (or Octave), Mathematica, Gauss, SAS, or
> even use some Fortran code from netlib:
>
> See also:
>
> http://cm.bell-labs.com/cm/ms/departments/sia/wsc/smoothsoft.html
I'm sure Perl isn't the best choice from a programming sense, but it is
what I know so I was curious if a solution existed. I'm aware that R
includes this so I'll probably end up going with that, though I don't
know R so there will be an additional hurdle to get past.
------------------------------
Date: Wed, 16 Nov 2005 11:00:42 -0700
From: "Mr. No Address" <no_given_address@landofthelost.net>
Subject: Re: LOESS (aka LOWESS)
Message-Id: <dlfthe$ea1$1@news.nems.noaa.gov>
xhoster@gmail.com wrote:
> "Mr. No Address" <no_given_address@landofthelost.net> wrote:
>
>>Locally Weighted Robust Regression (LOWESS or LOESS). Boss says it's
>>the thing to use for a particular job that needs to be done. Is there a
>>Perl module out there that does this?
>
>
> Did the boss say you had to do it in Perl? I'd seriously consider using R
> for this, perhaps interfaced to Perl.
Thanks for your comment. That is the direction I'm heading.
------------------------------
Date: Wed, 16 Nov 2005 11:03:08 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: strange problem with system() and backtick operator
Message-Id: <slrndnmpic.4v8.tadmc@magna.augustmail.com>
Martin Kissner <news@chaos-net.de> wrote:
> A. Sinan Unur wrote :
>>
>> perldoc -f oct
>>
>> oct EXPR
>> oct Interprets EXPR as an octal string and returns the
^^^^^^
^^^^^^
>> corresponding value.
>>
>> Notice the "octal string".
^^^^^^
^^^^^^
>> A number is just a number, that is it.
> Thank you for your help.
> This clarifies a lot.
But you don't "have it" yet, so let's keep trying...
There is an abstract concept called a "number".
There are many _representations_ for any particular "number".
Let's use the number "ten" for example:
1010 ( 2)
12 ( 8)
10 (10)
0A (16)
8 + 2
11 - 1
All of those representations correspond to the *same number*, they
are just different ways of writing the same thing.
> If I understand right, I should use "chmod oct($mode), 'file'" (like I
> did ;-)) if $mode is the result of an addition
No!
You should use "chmod oct($mode) when $mode is a *string*
(not when it is a number).
> (and not an octal value).
There is no such thing as an "octal value".
There could be a number that is represented in octal (base 8) though.
I don't think you understand Perl's data types well enough yet,
have a look at the "Scalar values" section in:
perldoc perldata
A scalar may contain one single value in any of three
different flavors: a number, a string, or a reference.
You need to be able to understand which one you've got if you
hope to process it correctly (sans DWIMery).
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8673
***************************************