| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Comments:
<0> like while true; do sleep 1000000000; done| myprog <0> but simpler <0> is there any /dev/nothing ? <0> ? <1> The_SB: I found the book a bit tedious. MJD is covering one code, then goes on to discuss some modifications, then a lot of discussion. I sort of anticipated it. <2> like /dev/empty <3> like /dev/null ? <0> no /dev/null gives eof immediately <1> The_SB: I'd better go to sleep. Hopefully, I'll be more productive work-wise tomorrow. <0> i need /dev/wautforever <0> i need /dev/waitforever <4> OK bye <5> /dev/zero ? <1> The_SB: I'll probably won't IRC unless I encounter a problem. <0> pravus: oh right <1> The_SB: I had a problem where my code did not work, because I wrote ">" instead of "->".
<2> zero always has zeros in it.. <0> i though /dev/zero would give stream of 0-bytes <0> thanks <1> The_SB: viva la minute difference! <4> rindolf: C U :-) <5> Mish: it does <1> The_SB: good night. <0> pravus: wait then it's bad <1> The_SB: do you have work tomorrow? <0> i need device that gives nothing but not eof <4> sure <5> if you just want to open something that blocks, use a FIFO <6> "xp_" at 63.103.227.2 pasted "ParseRecur returns nothing?" (23 lines, 579B) at http://sial.org/pbot/18066 <2> Mish: just make a temp named fifo in /tmp.. omen it for reading and writing.. and just never write to it. <1> The_SB: did you see my email? <0> not good <1> The_SB: about AP5, etc? <7> i'm just going to update that box to -stable and hope that's it <0> i need the open to succeed <8> help please <0> i don't want it to block in open <0> but in read <2> the open WILL succeed if you open it for read and write. <5> Mish: mkfifo <0> no, i open it RONLY <4> at work yes - I wil try to see what details are needed <0> RONLY RONLY RONLY <0> sorry RONLY <9> got a stupid question.. how do I do this more efficiently, hopefulyl only using one line? http://rafb.net/paste/results/1BYwYW31.html <10> The paste 1BYwYW31 has been moved to http://erxz.com/pb/1753 <8> dkr? <2> Then open it in non blocking mode. <5> leku: for my $line (@{ $_->{action} }) { <0> fifo might be good idea though <0> i'll try prog </tmp/fifo 4>/tmp/fifo <9> thanks <0> betterm prog 4>/tmp/fifo </tmp/fifo <0> then it prolly not block in open <0> right ? <2> or just: sleep 10000000 | prog <0> i don't have control over open flags , it's external app <2> or even: perl -e 'sleep;' | prog <0> JohnQ: yeah that'w what I'm doing now <11> GumbyBRAIN: you have 7 alleles in common with PerlJam <0> i'm thinking of reducing elephant footprint on my process table <12> As in you have all the more common. <11> stupid tab completetion, that should have been perlbot <2> why? you doing this a million times or something? <5> simcop2387: how do you blame that on tab completion? <0> have those junk processes <0> s/have/hate/ <5> simcop2387: nm... rainbows <2> process (single) <11> pravus: i hit tab <0> that have tendency to become zombies <2> "perl -e 'sleep'" can not become a zombie. <0> no "prog 4>/tmp/fifo </tmp/fifo" did not work <0> why "perl -e 'sleep'" can not become a zombie. <2> what would it be waiting on? It has no children... <13> JohnQ: Zombies aren't the ones who are waiting..
<13> But it can't become a zombie because bash eats them properly <8> buu can you help me with my ParseRecur problem? <2> Mish.. if it really bothers you.. you can make only one such process... make a fifo... make a program which sleeps, and redirect it into the fifo... and then open the fifo for reading as often as you want. <13> xp_: Does it involve working? <8> no, it is all fun <8> http://sial.org/pbot/perl/paste <13> Awesome url. <8> thanks <0> **** 'prog >/tmp/fifo' blocks until someone opens it for reading <0> and 'prog </tmp/fifo' blocks, too <2> of course it does. <13> xp_: Want to tr a link tha thas code on it now? <13> Mish: Erm, yes? <2> Like I said... make a program which makes a fifo, and opens it for reading AND writing... and then goes to sleep. Anyone else can open that same fifo for reading and it will not block. <8> http://sial.org/pbot/18066 <8> oops sorry :( <2> Anyway... how can you find out how much memory a perl process is using? <2> from inside the process <14> I need to concatenate two paths together.. Is there a portable way to determine which path separator to use?? <2> getrusage does not seem to do it <16> SummerWO: perldoc File::Path <10> File::Path. To access this perldoc please type, at a command line, 'perldoc File::Path'. You may also find it at http://perldoc.perl.org/File/Path.html <13> xp_: What the **** i sthat <8> buu what am I dong wrong? <17> hey there. I have a log file millions of lines long. Each line has 9 entries, separated by spaces. <17> I would like to put each of these into a hash...so I thought I would use a regex <13> xp_: Seriously, what the hell? <17> i tried /(.*)\s(.*)/ <14> PerlJam: I do not see it there -- I looked. <0> how do i do mkfifo in perl ? <17> would that not give me the first two things separated by a space? <13> Mish: try mkfifo <13> jirwin: try split <16> SummerWO: perldoc File::Spec <10> File::Spec. To access this perldoc please type, at a command line, 'perldoc File::Spec'. You may also find it at http://perldoc.perl.org/File/Spec.html <0> why it's not in man perlfunc <17> buu: thanks <13> Mish: It is? <2> system("mkfifo","/tmp/blackhole") and die; <0> buu: no <13> Ok, it isn't <13> JohnQ: Not really, no <2> it will work for his test <18> xp: earlier I said: do not use printf if you want printf. You are STILL using printf. Do NOT use printf unless you are using a FORMAT. <13> Hrm <13> Wait.. <13> Woah, there's no mkfifo? <13> Maybe it's in a module someplace <19> Anyone happen to be doing any perl coding for Asterisk stuff? <0> WHO STOLE mkfifo ? <2> just use system man... <5> buu: POSIX <13> You've found it! <0> Undefined subroutine &POSIX::mkfifo called at -e line 1. <5> the question is: who lost it? <0> oops wait <0> forgor use <18> xp: do you understand what I said? <0> ok, POSIX::mkfifo it is <2> Is there really no way to get the current memory usage of a perl script? <5> doesn't Devel::Size do stuff like that? <18> The exact memory usage? No. <0> getrusage <2> getrusage does not do it. <0> does perl have getrusage ? <2> getrusage does not do it. <0> why not ? <2> look at the function.. it does not give you that information. <0> 'integral unshared data size' is not good 4u ? <0> ru_idrss <2> it is always 0 ... so... no. <0> which OS ?
Return to
#perl or Go to some related
logs:
#kde error: XML::Parser perl module is required for intltool gentoo unload oss module sarge gentoo warning gcc seems to be moved #ldap ubuntu update firewall +problem rpcidmapd, yast
gimpshop .rpm substatian #oe
|
|