Date: Thu, 10 Dec 2009 20:34:32 +0100 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-questions@pp.dyndns.biz> To: FreeBSD Questions <questions@freebsd.org> Subject: Re: Get the cwd of a process? Message-ID: <4B214D48.9060000@pp.dyndns.biz> In-Reply-To: <b043a4850910312234v52f7526ej42e987a718975953@mail.gmail.com> References: <b043a4850910291422u2d37344tf46b5d46691bb48a@mail.gmail.com> <20091030034812.GU29215@dan.emsphone.com> <b043a4850910310913p62f19b27w92620347c339a9e6@mail.gmail.com> <b043a4850910312234v52f7526ej42e987a718975953@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
patrick wrote: > I've made some headway... perl supports "sitecustomize.pl" which can > be used to execute code when any perl script is run. It doesn't seem > to be enabled by default, so I had to add the following line to > /usr/ports/lang/perl5.8/Makefile's CONFIGURE_ARGS: > > -Dusesitecustomize \ > > As a temporary measure, my sitecustomize.pl has: > > system "echo $$ $ENV{'PWD'} $0 ". (localtime) . " >>/tmp/scripts_used.lst"; > > (found this in another thread somewhere) > > So, hopefully the next time this spammer comes back, I will see the > original working directory, etc. before the process forks itself. > Fingers crossed! > > Patrick For the mail archives and also my personal interest - did you ever figure out what was running the script? /Morgan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B214D48.9060000>