>> "BC" == Ben Collins <email@example.com> writes:
BC> On Sat, Jan 02, 1999 at 04:59:00PM +0100, Martin Bialasinski wrote:
>> 1. Perl has an way to acces the logsystem without logger. use
>> Sys::Syslog. This will save one exec, thous makeing the thing faster.
BC> That's good, if perl is installed already and not just perl-base,
BC> or is Sys::Syslog in perl-base?
No, it is in perl. Pity.
>> 2. No need to call it with the package name.
>> $ppid = getppid;
>> open IN, "/proc/$ppid/cmdline";
>> $line = <IN>;
>> close IN;
>> ($package) = $line =~ m!/var/lib/dpkg/info/([^.]+)!;
BC> Too complicated and depends on procfs being there, which it may
Ok, just wanted to make the deb-log command less complicated.
- Re: dpkg-logger
- From: firstname.lastname@example.org (Martin Bialasinski)