All pastes #799149 Raw Edit

Mine

public text v1 · immutable
#799149 ·published 2007-11-27 10:41 UTC
rendered paste body
[2007-11-27 11:06] <cmihai> Some commands also support a /P (page)
[2007-11-27 11:07] <Arikael> cmihai, may it be a problem with the overwrite protection etc.?
[2007-11-27 11:07] <cmihai> These are 12GB tapes right?
[2007-11-27 11:07] <Sazpaimon> cmihai, i dont want that
[2007-11-27 11:07] <Arikael> 24 gbyte
[2007-11-27 11:07] <Sazpaimon> i want to have it set to automatically display each line after a set amount of time
[2007-11-27 11:08] <cmihai> Arikael, don't you mean 12/24?
[2007-11-27 11:08] <cmihai> They usually say: 24*
[2007-11-27 11:08] <Arikael> yes
[2007-11-27 11:08] <cmihai> * - assume 2:1 compression
[2007-11-27 11:08] <Sazpaimon> not an entire page full of text and have it make me press enter for each line
[2007-11-27 11:09] <cmihai> As in, scroll every second or whatever?
[2007-11-27 11:09] <Arikael> so I won't be able to use 24gbyte at any time?
[2007-11-27 11:09] <jelly> Arikael: sounds like you've filled up one tape, and it wants to continue on new medium
[2007-11-27 11:09] <Sazpaimon> cmihai, or every millisecond, yes
[2007-11-27 11:10] <Arikael> hm, I'm not sure
[2007-11-27 11:10] <Arikael> because on other day we had more data to save then today and it worked within 7 hours...
[2007-11-27 11:11] <cmihai> Arikael, that tape never was 24GB, unless you assume compression. Maybe your data just doesn't compress as well.
[2007-11-27 11:11] <cmihai> Eg: media
[2007-11-27 11:13] |<-- Jad has left kornbluth.freenode.net (Read error: 110 (Connection timed out))
[2007-11-27 11:13] <Arikael> currently it has 12342342949 bytes which is 11.5 Gbyte
[2007-11-27 11:14] <jelly> that's ok for that media if your data is already compressed.
[2007-11-27 11:14] <Arikael> but, it could be that there were already some data on the tape
[2007-11-27 11:14] <jelly> (ie. zips, or mpeg/avi)
[2007-11-27 11:15] <cmihai> help | awk ' { if (system("sleep 1") == 0) print $0 }'
[2007-11-27 11:15] -->| Greeny (n=m@77-96-136-35.cable.ubr03.pres.blueyonder.co.uk) has joined ##windows
[2007-11-27 11:15] <cmihai> I've written a script that does that Sazpaimon :P
[2007-11-27 11:15] <Sazpaimon> oh?
[2007-11-27 11:15] |<-- the_giver has left kornbluth.freenode.net ("This computer has gone to sleep")
[2007-11-27 11:15] <jelly> cmihai: eww, system() ;-)
[2007-11-27 11:15] <cmihai> Oh, you need Services for UNIX :P
[2007-11-27 11:15] <Arikael> anybody an idea?
[2007-11-27 11:16] <cmihai> replace help with a cat / type of whatever command oyu want
[2007-11-27 11:16] -->| The3Magician (i=magician@a88-115-93-101.elisa-laajakaista.fi) has joined ##windows
[2007-11-27 11:16] <Sazpaimon> I have unix services installed
[2007-11-27 11:16] <cmihai> Great, fire up ksh
[2007-11-27 11:16] <cmihai> :-)
[2007-11-27 11:17] <Sazpaimon> k
[2007-11-27 11:18] <cmihai> Give it a spin. It also works like:
[2007-11-27 11:18] <cmihai> awk ' { if (system("sleep 1") == 0) print $0 }' myfile
[2007-11-27 11:18] |<-- MadneX has left kornbluth.freenode.net ()
[2007-11-27 11:18] <jelly> hehe, install SFU, and reduce the problem to a unix shell solution
[2007-11-27 11:18] <cmihai> Replace 1 with "sleep 0.1" or whatever time you want it to sleep
[2007-11-27 11:18] * jelly has Cygwin for those
[2007-11-27 11:18] <cmihai> Works fine with Cygwin too
[2007-11-27 11:19] <Sazpaimon> i forget
[2007-11-27 11:19] <Sazpaimon> how do I cd to a windows drive?
[2007-11-27 11:19] <cmihai> awk '{ if (system("sleep 0.2") == 0) print $0 }' testpage
[2007-11-27 11:19] <cmihai> Bam :-)
[2007-11-27 11:19] <jelly> but my sense of elegance is horrified by doing system() par each line of input
[2007-11-27 11:19] <jelly> per*
[2007-11-27 11:19] <cmihai> bla bla bla :P. There is no sleep command in awk
[2007-11-27 11:20] <jelly> yeah, and no portable way to do it in perl, it seems
[2007-11-27 11:20] <jelly> perldoc -f sleep: For delays of finer granularity than one second, you may use Perl�s "syscall" interface to access setitimer(2) if your system supports it, or else see "select" above.
[2007-11-27 11:21] <cmihai> Sazpaimon, /dev/fs/C
[2007-11-27 11:21] <cmihai> Heh :-)
[2007-11-27 11:21] <jelly> no, wait
[2007-11-27 11:21] <jelly> cat .zshrc | perl -pe 'select(undef, undef, undef, 0.1);'
[2007-11-27 11:21] <jelly> \o/
[2007-11-27 11:22] <cmihai> Useless use of a cat.
[2007-11-27 11:22] <jelly> that's a freakin example
[2007-11-27 11:22] <jelly> replace the cat by a dog or whatever the actual command would be
[2007-11-27 11:22] <cmihai> Heh, what do you know, it works
[2007-11-27 11:22] <Sazpaimon> okay
[2007-11-27 11:22] <cmihai> perl -pe 'select(undef, undef, undef, 0.1);' testpage
[2007-11-27 11:22] <Sazpaimon> what if i want to call this from another program
[2007-11-27 11:22] <cmihai> Don't waste cats :-)
[2007-11-27 11:23] <cmihai> Sazpaimon, call it.
[2007-11-27 11:23] <cmihai> You can also pipe or redirect.
[2007-11-27 11:23] <Sazpaimon> i tried posix /u /c /bin/ksh /bin/awk
[2007-11-27 11:23] <Sazpaimon> /bin/awk
[2007-11-27 11:23] <Sazpaimon> err
[2007-11-27 11:23] <Sazpaimon> and I got /bin/awk [1]: MZ���  �@ι�����: not found
[2007-11-27 11:23] <Sazpaimon> /bin/awk[17]: syntax error: `(' unexpected
[2007-11-27 11:23] <jelly> Sazpaimon: drop the /bin/ksh bit
[2007-11-27 11:23] <cmihai> Actually, jelly's Perl example can also use Windows "native" perl, using ActiveState perl.
[2007-11-27 11:24] <Sazpaimon> actually
[2007-11-27 11:24] <jelly> select() ftw
[2007-11-27 11:24] <Sazpaimon> good idea
[2007-11-27 11:24] <Sazpaimon> since i have perl installed
[2007-11-27 11:24] <cmihai> What are you really trying to do though?
[2007-11-27 11:24] <jelly> emulate a movie-style terminal? :-)
[2007-11-27 11:25] <cmihai> Emulate nothing, get a 1200 baud vt100 :-)
[2007-11-27 11:26] <jelly> I didn't know, but apparently vt420s are still being made
[2007-11-27 11:26] <cmihai> Yep
[2007-11-27 11:26] <cmihai> I got some with my HP server
[2007-11-27 11:27] <cmihai> Great stuff, DEC-ish construction and all.
[2007-11-27 11:27] <Sazpaimon> alright
[2007-11-27 11:27] <Sazpaimon> i tried cat xi.inf | perl -pe 'select(undef, undef, undef, 0.1);'
[2007-11-27 11:27] <jelly> I loved their keyboards, and amber screens
[2007-11-27 11:27] -->| shinao1 (n=shinao1@217.20.242.50) has joined ##windows
[2007-11-27 11:27] <Sazpaimon> and got
[2007-11-27 11:28] <cmihai> 1
[2007-11-27 11:28] <Sazpaimon> Can't find string terminator "'" anywhere before EOF at -e line 1.
[2007-11-27 11:28] <Sazpaimon> cat: stdout: Bad file descriptor
[2007-11-27 11:28] <cmihai> 2
[2007-11-27 11:28] <cmihai> 3
[2007-11-27 11:28] <cmihai> ?
[2007-11-27 11:28] <cmihai> :-)
[2007-11-27 11:28] <cmihai> What?
[2007-11-27 11:28] <cmihai> Don't use cat
[2007-11-27 11:28] <cmihai> perl -pe 'select(undef, undef, undef, 0.1);' xi.inf
[2007-11-27 11:28] <jelly> Sazpaimon: sorry, use "" instead of '' in windows
[2007-11-27 11:28] |<-- unix_infidel has left kornbluth.freenode.net ("leaving")
[2007-11-27 11:28] <Sazpaimon> sweet
[2007-11-27 11:28] <Sazpaimon> thanks
[2007-11-27 11:29] |<-- noobuntu has left kornbluth.freenode.net ("Ex-Chat")
[2007-11-27 11:29] |<-- Sazpaimon has left kornbluth.freenode.net (Excess Flood)
[2007-11-27 11:29] <jelly> teehee
[2007-11-27 11:29] -->| Sazpaimon (i=Sazpaimo@cpe-72-130-16-54.socal.res.rr.com) has joined ##windows
[2007-11-27 11:29] |<-- Sazpaimon has left kornbluth.freenode.net (Excess Flood)
[2007-11-27 11:29] <cmihai> jelly, Randal Schwartz is watching :P.
[2007-11-27 11:29] -->| Sazpaimon (i=Sazpaimo@cpe-72-130-16-54.socal.res.rr.com) has joined ##windows
[2007-11-27 11:30] <Sazpaimon> dammit
[2007-11-27 11:30] <Sazpaimon> i didnt mean to test it in this server
[2007-11-27 11:30] <cmihai> Wait.
[2007-11-27 11:30] <cmihai> You're basically...
[2007-11-27 11:30] <cmihai> Trying to flood IRC?
[2007-11-27 11:30] <Sazpaimon> no
[2007-11-27 11:30] <Sazpaimon> Im trying to be able to paste log messages in flood channels
[2007-11-27 11:30] <Sazpaimon> if i dont have access to a pastebin
[2007-11-27 11:30] <jelly> Sazpaimon: if you have perl, use the pastebin pipe script
[2007-11-27 11:31] |<-- TheMagician has left kornbluth.freenode.net (Connection timed out)
[2007-11-27 11:31] <jelly> <dpkg> Download http://pastebin.ca/download/paste2pastebin.pl and install libwww-mechanize-perl. Then pipe your output to perl paste2pastebin.pl.
[2007-11-27 11:31] <Sazpaimon> however, i might like to use it to paste ascii text files on my own server's entertainment channels
[2007-11-27 11:31] <Sazpaimon> but that's different
[2007-11-27 11:31] <Sazpaimon> basically i wanted an mirc-like /play command
[2007-11-27 11:31] <jelly> replace the "install libwww-mechanize-perl" bit with install WWW::Mechanize ;-)
[2007-11-27 11:32] <cmihai> Sazpaimon, yes, I wanted to say that :P.
[2007-11-27 11:32] |<-- Greeny_ has left kornbluth.freenode.net (Connection timed out)
[2007-11-27 11:32] <cmihai> But saying the "m" word is a punishable offense to my people.
[2007-11-27 11:33] <jelly> mIRC?
[2007-11-27 11:33] <cmihai> Actually, you _should_ use Perl, most IRC clients support perl scripting. What exactly are you using?
[2007-11-27 11:33] * cmihai shoots jelly 
[2007-11-27 11:33] <jelly> mIRC mIRC mIRC, I <3 mIRC ;-)
[2007-11-27 11:34] <jelly> DCC SEND 0 0 0 mIRC RULEZ
[2007-11-27 11:34] <jelly> or whatever.
[2007-11-27 11:34] <cmihai> Are you done? ;-)
[2007-11-27 11:34] * jelly uses xchat even when in windows, for some reason
[2007-11-27 11:34] <Sazpaimon> cmihai, if i knew my perl I'd write a basic perl script
[2007-11-27 11:35] -->| Steven_elvisda_ (n=Steven_E@202.47.107.60) has joined ##windows
[2007-11-27 11:35] <Sazpaimon> right now i have a /play alias set to /exec -o perl -pe "select(undef, undef, undef, 0.1);" "&2"
[2007-11-27 11:35] <MacGyverNL> I use Trillian.
[2007-11-27 11:35] <MacGyverNL> Does that make me a mahochist?
[2007-11-27 11:35] <MacGyverNL> s/mahochist/masochist/
[2007-11-27 11:35] <Sazpaimon> which...kind of works
[2007-11-27 11:35] -->| RichiH (i=richih@freenode/staff/richih) has joined ##windows
[2007-11-27 11:36] <Sazpaimon> though i suppose a perl script would be superior, huh?
[2007-11-27 11:36] <cmihai>  /exec is not fun :-)
[2007-11-27 11:36] <jelly> Sazpaimon: you'll probably need to increase or make that 0.1 configurable
[2007-11-27 11:36] <cmihai> Let me guess: irssi
[2007-11-27 11:36] <Sazpaimon> jelly, yeah i know
[2007-11-27 11:36] <Sazpaimon> i was testing it on a net i run, so i can flood without trouble
[2007-11-27 11:36] |<-- Gargantua has left kornbluth.freenode.net ()
[2007-11-27 11:37] <cmihai> Just one thing Sazpaimon
[2007-11-27 11:37] <cmihai> once you start that thing
[2007-11-27 11:37] <Sazpaimon> but this works to an extent, it throws blocks of the file every second or so
[2007-11-27 11:37] <Sazpaimon> which kind of isnt the desired effect
[2007-11-27 11:37] <unic0rn> MacGyverNL: try pidgin if you wanna be considered one ;)
[2007-11-27 11:37] <cmihai> say you paste /vmunix or whatever
[2007-11-27 11:37] <cmihai> You can't stop it
[2007-11-27 11:37] <Sazpaimon> what if i paste /dev/urandom? :P
[2007-11-27 11:38] <cmihai> Well, it will go on forever...
[2007-11-27 11:38] <Sazpaimon> I CAN SEE FOREVER
[2007-11-27 11:38] <jelly> worse, what if he pastes the complete works of ayn rand?
[2007-11-27 11:38] <Sazpaimon> regardless
[2007-11-27 11:38] <Sazpaimon> let me see if i can manifest this into a perl script
[2007-11-27 11:38] <Sazpaimon> despite me not knowing what the hell I am doing
[2007-11-27 11:38] <Sazpaimon> :D
[2007-11-27 11:39] -->| Crashed (n=Miranda@CPE0080c6fe9a1a-CM00194747bc74.cpe.net.cable.rogers.com) has joined ##windows
[2007-11-27 11:39] <Crashed> Hey, does anyone know how to block sites from IE?