Mailinglist Archive: opensuse (2700 mails)

< Previous Next >
Re: [SLE] DVDs 4U (Was: "Disappointed in 9.3")
  • From: ken <gebser@xxxxxxxxxxxxx>
  • Date: Sun, 03 Jul 2005 10:28:47 -0400
  • Message-id: <42C7F61F.8050908@xxxxxxxxxxxxx>
Randall R Schulz wrote:

>Ken,
>
>On Sunday 03 July 2005 03:25, ken wrote:
>
>
>>...
>>
>>
>>>This is true for every host name but 'and'; this last one returns
>>>the authoritative name servers for zoy.org, which helps to adjust
>>>the script:
>>>
>>>==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>>>#!/bin/bash --norc
>>> for DVDs in Linux screw the MPAA and; do
>>> dig @ns1.zoy.org $DVDs.z.zoy.org;
>>> done \
>>>
>>> | perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' \
>>> | gunzip
>>>
>>>==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>>>
>>>
>>...
>>
>>;; Query time: 262 msec
>>;; SERVER: 64.81.159.2#53(64.81.159.2)
>>;; WHEN: Sat Jul 2 17:09:51 2005
>>;; MSG SIZE rcvd: 47
>>
>>
>>What's the perl part of the command/script supposed to do with this?
>>
>>
>
>Once again, the code supplies the answer (obviously).
>
>The Perl code explicitly ignores lines that do not begin with an 'x'
>followed by characters other than 'z'. Before that, it removes all
>periods from the input. Now the lines it keeps (those starting with
>'x') are simply hex-encoded data which the pack built-in turns into
>corresponding binary for gunzip.
>
>
>Randall Schulz
>
>

What I meant was that, after the parsing by perl, there's nothing left
of the output (i.e., no output) from "dig and.z.zoy.org".

--
A lot of us are working harder than we want, at things we don't like to
do. Why? ...In order to afford the sort of existence we don't care to live.
-- Bradford Angier


< Previous Next >
Follow Ups