| 1 Jan 01:01 2009
Picon

Re: Perl, Threads and init.d

> I am using the 'threads' library that has been (rewritten) provided in 
Perl 
> and appears to be ?stable?
> 
> My difficulty is in piping the 'kill' instruction from the parent process 
to 
> the 'threaded' process.
> 
> It appears not to work.
> 
> Anyone with some insight, or sample?
> 
> Before someone says RTFM, I read http://perldoc.perl.org/perlthrtut.html 
and 
> used the samples there, but they aren't that good  and appear to not work 
:) 

What version of perl and in which environment?
Perldoc site defaults to perl 5.10, which I think none of the distro's 
include yet. If you use perl 5.8 then you should switch the docs using the 
selection box on the top right.

--Amos

> for example the process's exit instruction doesn't actually do anything :D
> 
> Some background:
>  * Its it a perl script that is launched from an init.d script
>  * The init.d script uses start-stop-daemon functionality to stop the 
perl 
(Continue reading)

Noam Rathaus | 1 Jan 07:26 2009

Re: Perl, Threads and init.d

Amos,

1) Set your Display name in Gmail :) it shows as empty
2) I am using 5.8, and the documents for 5.10 and 5.8 aren't that different, 
at least not in solving my problem

On Thursday 01 January 2009 02:01:14 amos.shapira@... wrote:
> > I am using the 'threads' library that has been (rewritten) provided in
>
> Perl
>
> > and appears to be ?stable?
> >
> > My difficulty is in piping the 'kill' instruction from the parent process
>
> to
>
> > the 'threaded' process.
> >
> > It appears not to work.
> >
> > Anyone with some insight, or sample?
> >
> > Before someone says RTFM, I read http://perldoc.perl.org/perlthrtut.html
>
> and
>
> > used the samples there, but they aren't that good  and appear to not work
> >
> :)
(Continue reading)

Amos Shapira | 1 Jan 09:54 2009
Picon

Re: Perl, Threads and init.d

------- Original message -------
From: Noam Rathaus <noamr@...>
Cc: linux-il@...
Sent: 1.1.'09,  17:25

> Amos,
> 
> 1) Set your Display name in Gmail :) it shows as empty

Done (trying a new email client on the Nokia)

> 2) I am using 5.8, and the documents for 5.10 and 5.8 aren't that 
different, 
> at least not in solving my problem

It would help a lot if you could bring up a minimal code snippet which 
demonstrates what you are trying to achieve and what you actually get.

=================================================================
To unsubscribe, send mail to linux-il-request@... with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@...

Noam Rathaus | 1 Jan 18:41 2009

Error with IMAP::Client

Hi,

I have not changed a thing beside upgrade to Perl 5.10 :) on Debian

And now IMAP::Client gives out:
Use of uninitialized value $line in pattern match (m//) 
at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 460.
Use of uninitialized value in pattern match (m//) 
at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 178.
Use of uninitialized value $line in concatenation (.) or string 
at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 467.
substr outside of string at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 
481.
Use of uninitialized value $fetchsets{"-1"} in concatenation (.) or string 
at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 482.

I couldn't find any reference to this issue on the Internet, anyone with 
pointers to where I can find a solution?

--

-- 
Noam Rathaus
CTO
noamr@...
http://www.beyondsecurity.com

"Know that you are safe."

Beyond Security Finalist for the "Red Herring 100 Global" Awards 2007

=================================================================
(Continue reading)

Amos Shapira | 1 Jan 21:51 2009
Picon

Re: Error with IMAP::Client

------- Original message -------
From: Noam Rathaus <noamr@...>
Sent: 2.1.'09,  4:40

> Hi,
> 
> I have not changed a thing beside upgrade to Perl 5.10 :) on Debian

I'm not sure that's supported. Perl 5.10 changed many things which might 
require changes in none-core packages.

> 
> And now IMAP::Client gives out:
> Use of uninitialized value $line in pattern match (m//) 
> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 460.
> Use of uninitialized value in pattern match (m//) 
> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 178.
> Use of uninitialized value $line in concatenation (.) or string 
> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 467.
> substr outside of string at /usr/local/share/perl/5.10.0/IMAP/Client.pm 
line 
> 481.
> Use of uninitialized value $fetchsets{"-1"} in concatenation (.) or 
string 
> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 482.
> 
> I couldn't find any reference to this issue on the Internet, anyone with 
> pointers to where I can find a solution?

Start with the RT system on CPAN. It's accessible through the module's page.
(Continue reading)

Amos Shapira | 2 Jan 08:06 2009
Picon

fdisk complains about geometry of a disk image

Hello,

I'm trying to salvage data from a desktop IDE disk which went sour
during a Windows XP re-installation on one of its partitions (the rest
was Ubunut 8.04 with LVM).

I put that IDE disk into an IDE->USB enclosure and ran ddrescue on it.
It complaint a lot but for now I just want to see if I manage to read
whatever is possible at the LVM level.

"fdisk -l" on the image file complains about not finding geometry and
therefore difference in logical/physical partition size in table:

Disk sdd: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00096ee7

Device Boot      Start         End      Blocks   Id  System
  sdd2           12030       24190    97683232+  8e  Linux LVM
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 0, 1) logical=(12029, 0, 1)
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(24189, 254, 63)
  sdd3           24191       24321     1052257+  83  Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 0, 1) logical=(24190, 0, 1)
Partition 3 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(24320, 254, 63)

(Continue reading)

Amos Shapira | 2 Jan 08:40 2009
Picon

Re: fdisk complains about geometry of a disk image

More information: It looks like the pvscan output I quoted below was
actually capturing the original half-dead device, not the image added
by kpartx.  After I turned off the USB disk enclosure I get:

# losetup -a
/dev/loop0: [0821]:132 (/media/FreeAgent Drive/AMOS/sdd)
# pvscan
  /dev/pictonvg/swaplv: read failed after 0 of 4096 at 536805376:
Input/output error
  /dev/pictonvg/swaplv: read failed after 0 of 4096 at 0: Input/output error
  /dev/pictonvg/rootlv: read failed after 0 of 4096 at 10737352704:
Input/output error
  /dev/pictonvg/rootlv: read failed after 0 of 4096 at 0: Input/output error
  /dev/pictonvg/homelv: read failed after 0 of 4096 at 88747212800:
Input/output error
  /dev/pictonvg/homelv: read failed after 0 of 4096 at 0: Input/output error
  PV /dev/sda5   VG wanaka   lvm2 [278.47 GB / 7.97 GB free]
  Total: 1 [278.47 GB] / in use: 1 [278.47 GB] / in no VG: 0 [0   ]

I.e. nothing is recognized from the loop-loaded image file.

Help?

--Amos
2009/1/2 Amos Shapira <amos.shapira@...>:
> Hello,
>
> I'm trying to salvage data from a desktop IDE disk which went sour
> during a Windows XP re-installation on one of its partitions (the rest
> was Ubunut 8.04 with LVM).
(Continue reading)

Gabor Szabo | 2 Jan 08:54 2009
Picon

Re: Error with IMAP::Client

On Thu, Jan 1, 2009 at 10:51 PM, Amos Shapira <amos.shapira@...> wrote:
> ------- Original message -------
> From: Noam Rathaus <noamr@...>
> Sent: 2.1.'09,  4:40
>
>> Hi,
>>
>> I have not changed a thing beside upgrade to Perl 5.10 :) on Debian
>
> I'm not sure that's supported. Perl 5.10 changed many things which might
> require changes in none-core packages.
>
>>
>> And now IMAP::Client gives out:
>> Use of uninitialized value $line in pattern match (m//)
>> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 460.
>> Use of uninitialized value in pattern match (m//)
>> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 178.
>> Use of uninitialized value $line in concatenation (.) or string
>> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 467.
>> substr outside of string at /usr/local/share/perl/5.10.0/IMAP/Client.pm
> line
>> 481.
>> Use of uninitialized value $fetchsets{"-1"} in concatenation (.) or
> string
>> at /usr/local/share/perl/5.10.0/IMAP/Client.pm line 482.
>>
>> I couldn't find any reference to this issue on the Internet, anyone with
>> pointers to where I can find a solution?
>
(Continue reading)

Amos Shapira | 2 Jan 10:35 2009
Picon

israelt TV online (again)

Hello,

I'm trying to follow the links posted on the thread at
http://www.mail-archive.com/linux-il-NSemkxREmS1YZAO8hgG6+w <at> public.gmane.org/msg46408.html (both
by me and Ira) but they don't seem to work any more (the one posted by
me doesn't include Channel 1/2/10 any more and the ones posted by Ira
just make mplayer come back with "no stream").

Are there any other ways to view Israeli TV news online? I understand
that mako.co.il is supposed to be the new Channel 2 online presence
but it requires Windows Media player. Installing GreaseMonkey mako
script to extract the url (http://userscripts.org/scripts/show/36207)
does't work.

My environment: Ubuntu 8.04 i386

Thanks,

--Amos

=================================================================
To unsubscribe, send mail to linux-il-request@... with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@...

Dvir Volk | 2 Jan 12:45 2009
Picon

Re: israelt TV online (again)

a bit off topic, but just saw it and it's great news for desktop linux
users in israel:
ynet have switched to flash based videos on the site, that actually work in FF.

example: http://www.ynet.co.il/articles/0,7340,L-3643274,00.html

On Fri, Jan 2, 2009 at 11:35 AM, Amos Shapira <amos.shapira@...> wrote:
> Hello,
>
> I'm trying to follow the links posted on the thread at
>
http://www.mail-archive.com/linux-il-NSemkxREmS1YZAO8hgG6+w <at> public.gmane.org/msg46408.html (both
> by me and Ira) but they don't seem to work any more (the one posted by
> me doesn't include Channel 1/2/10 any more and the ones posted by Ira
> just make mplayer come back with "no stream").
>
> Are there any other ways to view Israeli TV news online? I understand
> that mako.co.il is supposed to be the new Channel 2 online presence
> but it requires Windows Media player. Installing GreaseMonkey mako
> script to extract the url (http://userscripts.org/scripts/show/36207)
> does't work.
>
> My environment: Ubuntu 8.04 i386
>
> Thanks,
>
> --Amos
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@... with
(Continue reading)


Gmane