euglug.org

[작성자:] admin

  • [Eug-lug] An account of the War on Terror, as rendered via the Unix command-line:



    Michael DiSapioMon Nov 14 21:28:24 PST 2005

    I'm rather conservative.. mostly silent.
      prefer to listen and absorb, any political content is just 
    kinda...missed by the sponge heh.
    
    
    > dooger watts wrote:
    > >   And 
    > > speak of it, ARE there any consevative nerds/geeks?  
    > 
    > There have been several on this list ; last i heard the ones i knew were 
    > turned off by the political tone of the list.
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
    
    
    
  • [Eug-lug] Shell scripting IFS woes



    Bob MillerMon Nov 14 20:45:48 PST 2005

    Patrick R. Wade wrote:
    
    > My problem ; i have a file containing a list of filenames, which may 
    > contain spaces or dots in them:
    > ---
    > foo
    > bar baz
    > quux.random
    > ---
    > I would like to execute a series of scp commands on them:
    > ---
    > scp me at there:foo here/
    > scp "me at there:bar baz" here/
    > scp me at there:quux.random here/
    > ---
    
        #!/bin/sh
    
        while IFS="
        " read word
        do
    	echo scp ">>>me at there:$word<<<" here/
        done <<EOF
        foo
        bar baz
        quux.random
        EOF
    
    Up at the top it reads ... I F S = " \n " ...  And the >>> <<< are
    just showing where that particular arg starts and stops.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] An account of the War on Terror, as rendered via the Unix command-line:



    AlanMon Nov 14 20:43:10 PST 2005

    dooger watts wrote:
    > This is fabulous.  I'm forwarding it to all my 'droid friends.   And 
    > speak of it, ARE there any consevative nerds/geeks?  Seems like that's 
    > almost a contradiction in terms.
    
    Sure, why not?
    I don't see what one's hobby has to do with one's political views.
    In fact, I'm more likely to say "I'm a conservative" than I am to say 
    "I'm a geek" since I consider the latter to be a pejorative.
    
    -ajb
    
    
    
  • [Eug-lug] Shell scripting IFS woes



    Fred JamesMon Nov 14 20:23:57 PST 2005

    Patrick R. Wade wrote:
    
    > My problem ; i have a file containing a list of filenames, which may 
    > contain spaces or dots in them:
    > ---
    > foo
    > bar baz
    > quux.random
    > ---
    > I would like to execute a series of scp commands on them:
    > ---
    > scp me at there:foo here/
    > scp "me at there:bar baz" here/
    > scp me at there:quux.random here/
    > ---
    > My various efforts at IFS definition have not done what i wanted.
    > Can anyone point me towards the right way to do this?
    >
    > Thanks for your time...
    >
    Patrick R. Wade
    Would something like this help?
    Regards
    Fred James
    
    #! /bin/bash
    #       fubar.sh
    #       to preform scp commands on the files listed in fubar
    #
    OrigFile="fubar"
    TempFile="Fubar"
    cp /dev/null $TempFile
    while read fileName
    do
            echo $fileName | awk '{
                    N = split($0, FUBAR, " ")
                    for (i = 1; i <= N; i++) {
                            if (i == 1) {
                                    Name = FUBAR[i]
                            } else {
                                    Name = Name "\\ " FUBAR[i]
                            }
                    }
                    printf ( "scp \"%s\" \"%s.new\"\n", Name, Name )
            }' >> $TempFile
    done < $OrigFile
    sh $TempFile
    exit
    
    
    
  • [Eug-lug] An account of the War on Terror, as rendered via the Unix command-line:



    Patrick R. WadeMon Nov 14 20:10:44 PST 2005

    dooger watts wrote:
    >   And 
    > speak of it, ARE there any consevative nerds/geeks?  
    
    There have been several on this list ; last i heard the ones i knew were 
    turned off by the political tone of the list.
    
  • [Eug-lug] An account of the War on Terror, as rendered via the Unix command-line:



    dooger wattsMon Nov 14 18:46:07 PST 2005

    This is fabulous.  I'm forwarding it to all my 'droid friends.   And 
    speak of it, ARE there any consevative nerds/geeks?  Seems like that's 
    almost a contradiction in terms. 
    
    Martin Kelly wrote:
    
    > Hilarious forward I got from a friend, I figured everyone here would 
    > find it funny. Don't get offended if you're conservative :).
    >
    > An account of the War on Terror, as rendered via the Unix command-line:
    >
    > The War on Terror
    >
    > As viewed from the Bourne shell.
    >
    > $ cd /middle_east
    > $ ls
    > Afghanistan Iraq Libya Saudi_Arabia UAE
    > Algeria Israel Morrocco Sudan Yemen
    > Bahrain Jordan Oman Syria
    > Egypt Kuwait Palestine Tunisia
    > Iran Lebanon Qatar Turkey
    >
    > $ cd Afghanistan
    > $ ls
    > bin Taliban
    > $ rm Taliban
    > rm: Taliban is a directory
    > $ cd Taliban
    > $ ls
    > soldiers
    > $ rm soldiers
    > $ cd ..
    > $ rmdir Taliban
    > rmdir: directory "Taliban": Directory not empty
    > $ cd Taliban
    > $ ls -a
    > . .. .insurgents
    > $ chown -R USA .*
    > chown: .insurgents: Not owner
    > $ cd ..
    > $ su
    > Password: *******
    > # mv Taliban /tmp
    > # exit
    > $ ls
    > bin
    > $ cd bin
    > $ ls
    > laden
    > $ cd ..
    > $ rm -r bin/laden
    > bin/laden: No such file or directory
    > $ find / -name laden
    > $
    > $ su
    > Password: *******
    > # mv bin /tmp
    > # exit
    > $ pwd
    > /middle_east/Afghanistan
    > $ cd /opt/UN
    > $ ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
    > ln: cannot create /middle_east/Iraq/Al_Qaeda: Permission denied
    > $ su
    > Password:*******
    > # ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
    > # cd /middle_east/Iraq/Al_Qaeda
    > Al_Qaeda: does not exist
    > # rm /middle_east/Iraq/Al_Qaeda
    > # mkfile 100g /middle_east/Iraq/Al_Qaeda
    > mkfile: No space left on device
    > # rm /middle_east/Iraq/Al_Qaeda
    > # cd /opt/Coalition/Willing
    > # mkfile 1b /middle_east/Iraq/Al_Qaeda
    > # chown -R USA:Proof /middle_east/Iraq/Al_Qaeda
    > #exit
    > $ cd /middle_east/Iraq
    > $ ls
    > saddam
    > $ ls
    > saddam
    > $ ls
    > saddam
    > $ ls -a
    > . .. saddam
    > $ find / -name [Ww][Mm][Dd]
    > /Korea/North/wMd
    > $ wall Propaganda.txt
    > Broadcast Message from USA (pts/1) on USS_Abraham_Lincoln Th May 1st
    > Mission Accomplished!
    > $ rm saddam
    > saddam: No such file or directory
    > $ find / -name saddam
    > /var/opt/dictators/spiderhole/saddam
    > $ wall NewsWorthy.txt
    > Broadcast Message from USA (pts/1) on Time.Magazine Sat Dec 13
    > We Got Him!
    > $ mv /var/opt/dictators/spiderhole/saddam /opt/jail
    > $ cd /opt/USA
    > $ cp -Rp Democracy /middle_east/Iraq
    > $ cd /middle_east/Iraq/Democracy
    > $ ./install
    > Install Error: Install failed. See install_log for details.
    > $ more install_log
    > Installed failed!
    > Prerequisite packages missing
    > Conflicting package Wahhabism found in /midde_east/Saudi_Arabia
    > Packages Church and State must be installed separately
    > File System /PeakOil nearing capacity
    > Please read the install guide to properly plan your installation.
    > $
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
    
  • [Eug-lug] hda errors?



    Rob HudsonMon Nov 14 17:42:48 PST 2005

    dmesg tells me this:
    hda: IC35L060AVV207-0, ATA DISK drive
    
    This looks like the click of death drive I got back from Hitachi.  I'm 
    hoping they fixed the problem and didn't just send me another one...
    
    -Rob
    
    Mr O wrote:
    > What kind of drive? Is low formatting out of the question?
    > Download the drive manufacturers utilities and test it. It's
    > time consuming sometimes but may give you a more definitive
    > answer.
    > 
    > 
    > --- Rob Hudson <rob at euglug.net> wrote:
    > 
    >> This is the 2nd one of these I've seen in the past week in my
    >> system 
    >> logs.  Is this a sign of eminent hard drive failure or just
    >> random errors?
    >>
    >> Nov  8 09:06:06 saaz hda: dma_timer_expiry: dma status == 0x20
    >> Nov  8 09:06:06 saaz hda: DMA timeout retry
    >> Nov  8 09:06:06 saaz hda: timeout waiting for DMA
    >> Nov  8 09:06:06 saaz hda: status timeout: status=0xd0 { Busy }
    >> Nov  8 09:06:06 saaz
    >> Nov  8 09:06:06 saaz ide: failed opcode was: unknown
    >> Nov  8 09:06:06 saaz hda: drive not ready for command
    >> Nov  8 09:06:06 saaz ide0: reset: success
    >>
    >> -Rob
    >> _______________________________________________
    >> EUGLUG mailing list
    >> euglug at euglug.org
    >> http://www.euglug.org/mailman/listinfo/euglug
    >>
    > 
    > 
    > 
    > 		
    > __________________________________ 
    > Yahoo! FareChase: Search multiple travel sites in one click.
    > http://farechase.yahoo.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
  • [Eug-lug] Shell scripting IFS woes



    larry priceMon Nov 14 17:08:47 PST 2005

    use a scripting language
    converting
    "this are a filename" to  "this\ are\ a\ filename"
    can be done in a shell script, but it's neither easy nor pretty.
    
    
    On 11/14/05, Patrick R. Wade <prwade at oip.net> wrote:
    > My problem ; i have a file containing a list of filenames, which may
    > contain spaces or dots in them:
    > ---
    > foo
    > bar baz
    > quux.random
    > ---
    > I would like to execute a series of scp commands on them:
    > ---
    > scp me at there:foo here/
    > scp "me at there:bar baz" here/
    > scp me at there:quux.random here/
    > ---
    > My various efforts at IFS definition have not done what i wanted.
    > Can anyone point me towards the right way to do this?
    >
    > Thanks for your time...
    >
    > --
    > On two occasions I have been asked [by members of Parliament!], 'Pray,
    > Mr. Babbage, if you put into the machine wrong figures, will the right
    > answers come out?' I am not able rightly to apprehend the kind of
    > confusion of ideas that could provoke such a question.
    >         -- Charles Babbage
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
    
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] An account of the War on Terror, as rendered via the Unix command-line:



    Martin KellyMon Nov 14 16:58:15 PST 2005

    Hilarious forward I got from a friend, I figured everyone here would 
    find it funny. Don't get offended if you're conservative :).
    
    An account of the War on Terror, as rendered via the Unix command-line:
    
    The War on Terror
    
    As viewed from the Bourne shell.
    
    $ cd /middle_east
    $ ls
    Afghanistan Iraq Libya Saudi_Arabia UAE
    Algeria Israel Morrocco Sudan Yemen
    Bahrain Jordan Oman Syria
    Egypt Kuwait Palestine Tunisia
    Iran Lebanon Qatar Turkey
    
    $ cd Afghanistan
    $ ls
    bin Taliban
    $ rm Taliban
    rm: Taliban is a directory
    $ cd Taliban
    $ ls
    soldiers
    $ rm soldiers
    $ cd ..
    $ rmdir Taliban
    rmdir: directory "Taliban": Directory not empty
    $ cd Taliban
    $ ls -a
    . .. .insurgents
    $ chown -R USA .*
    chown: .insurgents: Not owner
    $ cd ..
    $ su
    Password: *******
    # mv Taliban /tmp
    # exit
    $ ls
    bin
    $ cd bin
    $ ls
    laden
    $ cd ..
    $ rm -r bin/laden
    bin/laden: No such file or directory
    $ find / -name laden
    $
    $ su
    Password: *******
    # mv bin /tmp
    # exit
    $ pwd
    /middle_east/Afghanistan
    $ cd /opt/UN
    $ ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
    ln: cannot create /middle_east/Iraq/Al_Qaeda: Permission denied
    $ su
    Password:*******
    # ln -s /Bad_Guys/Al_Qaeda /middle_east/Iraq/.
    # cd /middle_east/Iraq/Al_Qaeda
    Al_Qaeda: does not exist
    # rm /middle_east/Iraq/Al_Qaeda
    # mkfile 100g /middle_east/Iraq/Al_Qaeda
    mkfile: No space left on device
    # rm /middle_east/Iraq/Al_Qaeda
    # cd /opt/Coalition/Willing
    # mkfile 1b /middle_east/Iraq/Al_Qaeda
    # chown -R USA:Proof /middle_east/Iraq/Al_Qaeda
    #exit
    $ cd /middle_east/Iraq
    $ ls
    saddam
    $ ls
    saddam
    $ ls
    saddam
    $ ls -a
    . .. saddam
    $ find / -name [Ww][Mm][Dd]
    /Korea/North/wMd
    $ wall Propaganda.txt
    Broadcast Message from USA (pts/1) on USS_Abraham_Lincoln Th May 1st
    Mission Accomplished!
    $ rm saddam
    saddam: No such file or directory
    $ find / -name saddam
    /var/opt/dictators/spiderhole/saddam
    $ wall NewsWorthy.txt
    Broadcast Message from USA (pts/1) on Time.Magazine Sat Dec 13
    We Got Him!
    $ mv /var/opt/dictators/spiderhole/saddam /opt/jail
    $ cd /opt/USA
    $ cp -Rp Democracy /middle_east/Iraq
    $ cd /middle_east/Iraq/Democracy
    $ ./install
    Install Error: Install failed. See install_log for details.
    $ more install_log
    Installed failed!
    Prerequisite packages missing
    Conflicting package Wahhabism found in /midde_east/Saudi_Arabia
    Packages Church and State must be installed separately
    File System /PeakOil nearing capacity
    Please read the install guide to properly plan your installation.
    $
    
  • [Eug-lug] Shell scripting IFS woes



    Patrick R. WadeMon Nov 14 16:04:33 PST 2005

    My problem ; i have a file containing a list of filenames, which may 
    contain spaces or dots in them:
    ---
    foo
    bar baz
    quux.random
    ---
    I would like to execute a series of scp commands on them:
    ---
    scp me at there:foo here/
    scp "me at there:bar baz" here/
    scp me at there:quux.random here/
    ---
    My various efforts at IFS definition have not done what i wanted.
    Can anyone point me towards the right way to do this?
    
    Thanks for your time...
    
    -- 
    On two occasions I have been asked [by members of Parliament!], 'Pray,
    Mr. Babbage, if you put into the machine wrong figures, will the right
    answers come out?' I am not able rightly to apprehend the kind of
    confusion of ideas that could provoke such a question.
    	-- Charles Babbage