Ultimately I need to do I/O through a named pipe and I
need to be able to restart the writer without restarting the reader.
The reader of a fifo will not be terminated as long as there is
at least one writer to the fifo. Therefore, create a second writer.
For example, to hold the fifo open for
"Brian J. Murrell" writes:
> Can anyone help? Ultimately I need to do I/O through a named pipe and I
> need to be able to restart the writer without restarting the reader.
Just make sure the write side of the pipe is not closed prematurely.
$ (n=0; while [ $n -lt 10 ]; do cat /dev/zero; let n=
Let's say I have the following (contrived, simplified example):
$ mknod /tmp/fifo
$ cat /dev/zero > /tmp/fifo &
$ cat < /tmp/fifo
When the first cat exits (i.e. is terminated) the second cat stops. The
problem is that I want to be able to restart the first cat and have the
second cat just keep r
Thanks for the quick reply Chet.
I should have insisted on the fact that I don't want the first TAB to insert
a full match. The first TAB should only insert the longest common prefix
between all the possible completions (not a full match). A full match should
only be inserted from the second TAB
> I'm trying to get a specific completion behaviour (simple but effective).
> Any help would be greatly appreciated.
> Here is what I'm looking for:
>
> 1. When TAB is hit once, complete the command-line with the longest common
> prefix AND list all possible completions (at the same time).
> This
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-4.0
-L/usr/src/packages/BUILD/bash-4.0/../readline-6.0
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYP