280 reputation
1410
bio website
location
age
visits member for 2 years, 1 month
seen Oct 22 '12 at 22:18

Jul
2
awarded  Curious
May
4
awarded  Notable Question
Apr
30
awarded  Famous Question
Feb
28
awarded  Popular Question
Jan
18
awarded  Popular Question
Sep
17
awarded  Yearling
Sep
4
awarded  Popular Question
Aug
6
awarded  Popular Question
May
28
awarded  Good Question
Mar
6
awarded  Notable Question
Oct
19
comment Bash while loop and reading from pipe
Awesome answer!
Oct
19
accepted Bash while loop and reading from pipe
Oct
19
comment Change numbers in the Number column to be consecutive from 0 for an mdadm RAID array
Ohh, someone who is as anal-retentive as me! Would also like to know the answer to this.
Oct
19
comment Bash while loop and reading from pipe
It's running right now with I guess the standard buffer size of 64K and seems to work so far... I have 16 GB of memory on this box, so if it fails I will try your suggestion =)
Oct
19
comment Bash while loop and reading from pipe
I'm not a Linux programming guru... when you say that the write blocks, does that mean that the kernel notes that the program is trying to write to a full stdout buffer, and will then suspend the thread and only wake it up once the pipe is no longer full?
Oct
19
comment Bash while loop and reading from pipe
Ok, I've read the man page now, and it seems that the behavior depends on whether the O_NONBLOCK flag was set or not. I guess I will just run the script and see if it blows up.
Oct
19
comment Bash while loop and reading from pipe
And what happens when the buffer is full?
Oct
19
comment Bash while loop and reading from pipe
I don't want to be rude, but "RTFM" is the sort of response I'd expect on Slashdot. Granted, RTFM is probably an answer that works on most questions with zero effort required.
Oct
19
asked Bash while loop and reading from pipe
Oct
14
comment Set tab indent in Emacs
Wow, yes that works. What was missing was the (magnus-minor-mode 1). I've tried it and it seems to be working with PHP, Python and Bash files so far. I shall evaluate further and wait for the phase of the moon to change before making my final judgement.