Oh... after actually *reading* the thread, I see that this is
something you already proposed, James (i.e. executing the commands
instead of just printing them).

best r.
Pall

On Mon, May 25, 2009 at 1:57 PM, Pall Thayer <[email protected]> wrote:
> Here's a good one...
> This one will not just print out your bash history but will actually
> execute every command in your bash history. I wouldn't recommend
> running this "as is". It could have devastating effects. What I did to
> test it was to create a fake .bash_history that I called bash_histuree
> and changed '~/.bash_history' in the script to '~/.bash_histuree'
>
> #!/usr/bin/perl
>
> sub relive {
>        $command = shift;
>        print `$command`;
> }
>
> while(1){
>        open(HISTORY, '~/.bash_history');
>        while($moment = <HISTORY>){
>                relive($moment);
>        }
> }
>
> Pall
>
> On Mon, May 25, 2009 at 12:11 PM, james morris <[email protected]> wrote:
>>
>> # note2: replacing echo -n "${cmd}" with `${cmd}`
>> # does not actually work! nor does using ${cmd}
>> # without the backticks work due to the way the
>> # for loop splits a_previous_login_history into
>> # words (ie splits it at each space char) - ie
>> # your commands are split up: ie ls *.* becomes
>> # two commands instead of one.
>>
>> On 25/5/2009, "james morris" <[email protected]> wrote:
>>
>>>
>>>#!/bin/sh
>>># historic_loop
>>># a BASH microcode to print your .bash_history
>>># file line by line in an infinite loop.
>>>a_previous_login_history=`cat .bash_history`
>>>while true
>>>do
>>>for cmd in $a_previous_login_history
>>>do
>>>echo -n "${cmd} "
>>>done
>>>done
>>># note: perhaps if you want to literally repeat history
>>># ie re-issue all commands in your .bash_history file,
>>># replace echo -n "${cmd} " with `${cmd}`
>>># but beware to do so is probably not such a good idea.
>>>
>>>
>>>On 25/5/2009, "Pall Thayer" <[email protected]> wrote:
>>>
>>>>And for those who don't know what an infinite loop is in programming,
>>>>it is explained along with an example in the Microcodes primer at
>>>>http://pallit.lhi.is/microcodes/MCprimer.pdf
>>>>
>>>>
>>>>Pall
>>>>
>>>>On Mon, May 25, 2009 at 10:50 AM, info <[email protected]> wrote:
>>>>> The Wheel of The Devil (aka the loop lecture)
>>>>>
>>>>> The infinite loop is the perfect form for expressing the reality of
>>>>> contemporary existence. From the endless boom-bust cycle of capitalism
>>>>> to the repeating right/left swings of American politics to the
>>>>> misbehaving computer code frustrating our days, we are the society of
>>>>> the loop. We're doomed to repeat history ad infinitum (not to mention ad
>>>>> nauseum) with no progress nor resolve needed. These observations are
>>>>> nothing new; how could they be? We've always been Sisyphus.
>>>>>
>>>>>    while (history) {
>>>>>        history = true;
>>>>>    }
>>>>>
>>>>>
>>>>> Come celebrate the horrific beauty of the infinite loop at "The Wheel of
>>>>> The Devil," a one-night-only screening of historic and contemporary
>>>>> loops at Over The Opening. Each loop screened until the audience votes
>>>>> to move to the next.
>>>>>
>>>>> Artists (in no particular order):
>>>>> JODI - Rick Silva - Brody Condon - Jon Rafman - Oliver Laric - Deidre
>>>>> LaCarte - Michael Sarff - MTAA - Hayley A. Silverman - Mathwrath - Chris
>>>>> Coy - Michael Bell-Smith - jimpunk -  and more... JODI - Rick Silva -
>>>>> Brody Condon - Jon Rafman - Oliver Laric - Deidre LaCarte - Michael
>>>>> Sarff - MTAA - Hayley A. Silverman - Mathwrath - Chris Coy - Michael
>>>>> Bell-Smith - jimpunk - and more... JODI - Rick Silva - Brody Condon -
>>>>> Jon Rafman - Oliver Laric - Deidre LaCarte - Michael Sarff - MTAA -
>>>>> Hayley A. Silverman - Mathwrath - Chris Coy - Michael Bell-Smith –
>>>>> jimpunk - and more...
>>>>>
>>>>> curated by MTAA with Ed Halter
>>>>> presented by T.Whid of MTAA
>>>>>
>>>>> where:
>>>>> Over The Opening (OTO)
>>>>> 60 N. 6th St. 2nd Flr (btw Wythe & Kent)
>>>>> Brooklyn, NY, 11211 (map)
>>>>>
>>>>> when:
>>>>> Friday May 29th, 2009 7-10PM (one night only)
>>>>> Doors open at 7PM, the lecture starts looping at 8PM sharp!
>>>>> free and open to the public
>>>>>
>>>>> Michael Sarff (M.River) and Tim Whidden (T.Whid) formed the
>>>>> Brooklyn-based artist collaboration MTAA in 1996. MTAA has presented
>>>>> artworks and performances at The New Museum of Contemporary Art, P.S.1
>>>>> Contemporary Art Center, The Whitney Museum of American Art, Postmasters
>>>>> Gallery, Artists Space, and Light Industry all in New York City; The
>>>>> Walker Art Center in Minneapolis; The Beall Center for Art and
>>>>> Technology in Irvine, CA; San Francisco Museum of Modern Art, San
>>>>> Francisco, CA and at The Getty Center in Los Angeles, CA. International
>>>>> exhibitions include the Seoul Net & Film Festival in Korea and
>>>>> Videozone2 - The 2nd International Video Art Biennial in Israel. The
>>>>> collaboration has earned grants and awards from the Creative Capital
>>>>> Foundation, Rhizome.org, Eyebeam and New Radio & Performing Arts, Inc.
>>>>>
>>>>> Ed Halter is a critic and curator living in New York City. His writing
>>>>> has appeared in Artforum, Arthur, The Believer, Cinema Scope,
>>>>> Kunstforum, Millennium Film Journal, Moving Image Source, Rhizome, the
>>>>> Village Voice and elsewhere. From 1995 to 2005, he programmed and
>>>>> oversaw the New York Underground Film Festival, and has organized
>>>>> screenings and exhibitions for the Brooklyn Academy of Music,
>>>>> Cinematexas, Eyebeam, the Flaherty Film Seminar, the Museum of Modern
>>>>> Art, and San Francisco Cinematheque. He currently teaches in the Film
>>>>> and Electronic Arts department at Bard College, and has lectured at
>>>>> Harvard, NYU, Yale, and other schools as well as at Art in General,
>>>>> Aurora Picture Show, the Foundation for Art and Creative Technology, the
>>>>> Images Festival, the Impakt Festival, and Pacific Film Archive. His book
>>>>> From Sun Tzu to Xbox: War and Video Games was published by Thunder's
>>>>> Mouth Press in 2006. With Andrea Grover, he is currently editing the
>>>>> collection A Microcinema Primer: A Brief History of Small Cinemas. He is
>>>>> a founder and director of Light Industry, a venue for film and
>>>>> electronic art in Brooklyn, New York.
>>>>>
>>>>> Over The Opening (OTO) - Once a month, the artist duo MTAA convert their
>>>>> Brooklyn studio into a venue for the presentation of time-based art. The
>>>>> ongoing project, begun in October 2007, has presented work ranging from
>>>>> group tamale production to a LAN party involving a computerized version
>>>>> of Guy Debord’s 1978 "Game of War."
>>>>>
>>>>> _______________________________________________
>>>>> NetBehaviour mailing list
>>>>> [email protected]
>>>>> http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>>>>
>>>>
>>>>
>>>>--
>>>>*****************************
>>>>Pall Thayer
>>>>artist
>>>>http://www.this.is/pallit
>>>>*****************************
>>>>
>>>>_______________________________________________
>>>>NetBehaviour mailing list
>>>>[email protected]
>>>>http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>>>>
>>>>
>>>
>>>_______________________________________________
>>>NetBehaviour mailing list
>>>[email protected]
>>>http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>>>
>>>
>>
>> _______________________________________________
>> NetBehaviour mailing list
>> [email protected]
>> http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>>
>
>
>
> --
> *****************************
> Pall Thayer
> artist
> http://www.this.is/pallit
> *****************************
>



-- 
*****************************
Pall Thayer
artist
http://www.this.is/pallit
*****************************

_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to