Mailinglist Archive: opensuse (2700 mails)
| < Previous | Next > |
Re: [SLE] DVDs 4U (Was: "Disappointed in 9.3")
- From: ken <gebser@xxxxxxxxxxxxx>
- Date: Sat, 02 Jul 2005 17:00:04 -0400
- Message-id: <42C70054.3090201@xxxxxxxxxxxxx>
Randall R Schulz wrote:
>On Saturday 02 July 2005 12:07, ken wrote:
>
>
>>...
>>
>>
>>for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done|
>>perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' |gunzip
>>
>>What did I lose?
>>
>>
>
>It never hurts to look at the code and understand what it's going to do,
>especially since you are, in effect, giving some other coder access to
>your shell.
>
>Put this in a file an execute it:
>
>-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>#!/bin/bash --norc
>
> for DVDs in Linux screw the MPAA and; do
> dig $DVDs.z.zoy.org;
> done \
> |perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' \
> |gunzip
>-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>
>
>Randall Schulz
>
>
Good points. Also, it's not a good idea to run any strange scripts as
root. Personally, I created a user (called "test") which is used to
run/test such scripts.
Back to the script itself.... I added a "set -x" above the code and got
this output:
+ dig Linux.z.zoy.org
+ perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)'
+ gunzip
+ dig screw.z.zoy.org
+ dig the.z.zoy.org
+ dig MPAA.z.zoy.org
+ dig and.z.zoy.org
gunzip: stdin: not in gzip format
So I'm still having the same problem, i.e., not in gzip format.
--
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
>On Saturday 02 July 2005 12:07, ken wrote:
>
>
>>...
>>
>>
>>for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done|
>>perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' |gunzip
>>
>>What did I lose?
>>
>>
>
>It never hurts to look at the code and understand what it's going to do,
>especially since you are, in effect, giving some other coder access to
>your shell.
>
>Put this in a file an execute it:
>
>-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>#!/bin/bash --norc
>
> for DVDs in Linux screw the MPAA and; do
> dig $DVDs.z.zoy.org;
> done \
> |perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' \
> |gunzip
>-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
>
>
>Randall Schulz
>
>
Good points. Also, it's not a good idea to run any strange scripts as
root. Personally, I created a user (called "test") which is used to
run/test such scripts.
Back to the script itself.... I added a "set -x" above the code and got
this output:
+ dig Linux.z.zoy.org
+ perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)'
+ gunzip
+ dig screw.z.zoy.org
+ dig the.z.zoy.org
+ dig MPAA.z.zoy.org
+ dig and.z.zoy.org
gunzip: stdin: not in gzip format
So I'm still having the same problem, i.e., not in gzip format.
--
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 > |