| Author |
mknod (mkfifo) in tcsh and bash
|
|
| feenberg@gmail.com 2006-10-18, 7:38 pm |
| In Linux if I run:
mknod pipe.plp p
cat file.foo >pipe.plp &
under bash (3.1.7(1)), I can subsequently read file.foo from pipe.plp.
But under tcsh (6.14.00) I get the message "pipe.plp: File exists"
after the 2nd command The mknod man page doesn't provide any guidance -
what am I doing wrong?
I can add that on our Solaris system, both shells work as I expected
and that FreeBSD (after substituting the mkfifo command for mknod) is
similar to Linux.
I am guessing that the syntax for making a fifo is different for GNU
tcsh, but what is it? We like to use this feature to read very large
compressed files without storing the uncompressed file on disk and a
mysterious switch to bash is unattractive, though a possible
work-around..
Daniel Feenberg
617-588-0343
feenberg isat nber dotte org
| |
| Bruce Barnett 2006-10-18, 7:38 pm |
| feenberg@gmail.com writes:
> In Linux if I run:
>
> mknod pipe.plp p
> cat file.foo >pipe.plp &
>
> under bash (3.1.7(1)), I can subsequently read file.foo from pipe.plp.
> But under tcsh (6.14.00) I get the message "pipe.plp: File exists"
By any change do you have the variable "noclobber" set?
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
| |
| feenberg@gmail.com 2006-10-19, 1:21 pm |
|
Bruce Barnett wrote:
> feenberg@gmail.com writes:
>
>
>
> By any change do you have the variable "noclobber" set?
>
Bingo - thank you.
| |
| Spiros Bousbouras 2006-10-21, 1:31 pm |
| feenberg@gmail.com wrote:
> Bruce Barnett wrote:
>
> Bingo - thank you.
Or you use >> instead of >
|
|
|
|