Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how do I set a "p" permission

955 views
Skip to first unread message

Crimperman

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to
Hi,

I have a file which got corrupted and had the permissions prw--w--w- .

I have managed to recreate the file but the permissions of the new file
do not have the leading "p" - the documentation on creating the file
simply says it must be a "named pipe" and world writable. I am assuming
the p signifies it is a named pipe but how do I set it? None the
documentation/man pages I have read on chmod etc. do not mention named
pipes? The app that uses this file needs it to be a pipe or the app
slows down a great deal.

Can anyone help me please?

thanks
Crimperman

Chris Beauchamp

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to

man mknod

HTH

Chris


cgr...@x-1.net

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to
In uk.comp.os.linux Crimperman <c-nospam-...@enterprise.net> wrote:
>
> Hi,
>
> I have a file which got corrupted and had the permissions prw--w--w- .
>
> I have managed to recreate the file but the permissions of the new file
> do not have the leading "p" - the documentation on creating the file
> simply says it must be a "named pipe" and world writable. I am assuming
> the p signifies it is a named pipe but how do I set it? None the
> documentation/man pages I have read on chmod etc. do not mention named
> pipes? The app that uses this file needs it to be a pipe or the app
> slows down a great deal.
>
You need to create the 'file' using mknod with the correct options to
make a named pipe. See the mknod man page.

--
Chris Green (cgr...@x-1.net)

Crimperman

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to

Chris Beauchamp wrote in message ...

>In article <Jtan5.7348$7v2.9...@nnrp3.clara.net>, Crimperman wrote:
>>Hi,
>>
>>I have a file which got corrupted and had the permissions prw--w--w- .
>>
>>I have managed to recreate the file but the permissions of the new
file
>>do not have the leading "p" - the documentation on creating the file
>>simply says it must be a "named pipe" and world writable. I am
assuming
>>the p signifies it is a named pipe but how do I set it? None the
>>documentation/man pages I have read on chmod etc. do not mention named
>>pipes? The app that uses this file needs it to be a pipe or the app
>>slows down a great deal.
>>
>>Can anyone help me please?
>>
>
>man mknod
>


yep I found that command in the linux programmers guide on ldp, shortly
after posting - isn't it always the way?

thanks anyway
Crimperman

Per Persson

unread,
Aug 18, 2000, 3:00:00 AM8/18/00
to
I'm running RedHat 6.2, and there's a command called 'mkpipe'. If you have
it, just enter 'mkpipe filename' to create a pipe named 'filename'.

/Per


Paul Martin

unread,
Aug 20, 2000, 3:00:00 AM8/20/00
to
In article <Jtan5.7348$7v2.9...@nnrp3.clara.net>,
Crimperman wrote:
>I have a file which got corrupted and had the permissions prw--w--w- .

>I have managed to recreate the file but the permissions of the new file
>do not have the leading "p" - the documentation on creating the file
>simply says it must be a "named pipe" and world writable. I am assuming

mkfifo

--
Paul Martin <p...@zetnet.net>
at home, swap dash to dot to email.

0 new messages