| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 9 months |
| seen | Oct 22 '12 at 22:18 | |
| stats | profile views | 9 |
|
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. |
|
Oct 14 |
accepted | Set tab indent in Emacs |
|
Oct 14 |
comment |
Set tab indent in Emacs Just inserted this in my .emacs and tried editing a PHP file. Pressing tab, it inserts eight spaces and when I press backspace it highlights the spaces with a blinking block (wtf?). So still no go. Then again, it is a full moon. |
|
Oct 14 |
asked | Set tab indent in Emacs |
|
Oct 10 |
comment |
Ubuntu 12.04: Random freezes kern.log and syslog contain nothing that helps, btw. |
|
Oct 10 |
asked | Ubuntu 12.04: Random freezes |
|
Oct 9 |
accepted | Get full path from within Bash script |
|
Oct 9 |
comment |
Get full path from within Bash script Thanks jw, I'll try this. Probably I'll do "export SCRIPTDIR=/home/data" in my .bash_login |
|
Oct 9 |
comment |
Get full path from within Bash script jw013: The reason I want to do it this way is because the entire directory hierarchy is backed up on multiple systems. So I use relative paths within the script, because it may be located in /home/data in one case or /raid/archive/data in another case. |