: 
: When I try create named pipe (to some directory which is 'visible' from 
: dosemu) in RDONLY mode, so after command
: ECHO HELLO > NAMED.PIP
: I got error message Access denied. Where is the problem? Permissions of 
: pipe are 0777, umask is 000, run under user ROOT.

  I suspect that echo may be trying to open the pipe in Read+Write mode;
I get the same effect with dosemu-1.0.1.0 and DRDOS 6. But if I write a 
C program to write to the pipe:

#include <unixio.h>
#include <string.h>

#define O_WRONLY 1

int main(int argc, char **argv)
{
        int n;
        int fd = open(argv[1], O_WRONLY);

        for (n = 2; n < argc; n++) 
        {
                write(fd, argv[n], strlen(argv[n]));
                write(fd, " ", 1);
        }
        close(fd);
        return 0;
}

 - then it works.  

------------- http://www.seasip.demon.co.uk/index.html --------------------
John Elliott           |BLOODNOK: "But why have you got such a long face?"
                       |SEAGOON: "Heavy dentures, Sir!"    - The Goon Show 
:-------------------------------------------------------------------------)
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to