Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > Creating FIFO's

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-29-2005   #1 (permalink)
Just Joined!
 
Dpontes11's Avatar
 
Join Date: Nov 2005
Location: Gondomar, Portugal
Posts: 68
Send a message via MSN to Dpontes11
Creating FIFO's

hi

i've been using knoppix for a few weeks because of a class at the university. this class is basically learning how to create processes in linux using C language.

the problem i'm having is the following:

im tying to use the named pipes, known as FIFO's. the thing is, when i try to create a normal unnamed pipe, it creates it and works without any problem. however, when i want to create a FIFO, it doesn't create it.

it's not a instructional error, as i've shown this problem to my teacher.

he said it might be because simply knoppix doesn't give me permitions to create this FIFO.

any sugestions on what I should do, if in fact there is something i can do?

thanx
Dpontes11 is offline  


Reply With Quote
Old 11-29-2005   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
How are you creating this FIFO? What is the exact mkfifo invocation you're using?
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 12-02-2005   #3 (permalink)
Just Joined!
 
Dpontes11's Avatar
 
Join Date: Nov 2005
Location: Gondomar, Portugal
Posts: 68
Send a message via MSN to Dpontes11
sorry about the delay... no internet acess for the last few days!

the code i'm using is:
Code:
unlink("temp_fifo");
mknod("temp_fifo",S_IFIFO|0660,0);
when testing this last line, it returns (-1), which means that the creation on the FIFO failed.

anyway, i hope this brings new light to someone who might be able to help me out...

thanx
Dpontes11 is offline   Reply With Quote
Old 12-02-2005   #4 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Okay, include <errno.h> and <stdio.h>, then add:
Code:
perror(NULL);
after the mknod() so that you can see what the exact error was.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 12-03-2005   #5 (permalink)
Just Joined!
 
Dpontes11's Avatar
 
Join Date: Nov 2005
Location: Gondomar, Portugal
Posts: 68
Send a message via MSN to Dpontes11
Ok, i'll do that.

I've been told by a friend that Knoppix really doesn't allow the creation of FIFO's, but still there could be a way...

thanks
Dpontes11 is offline   Reply With Quote
Old 12-03-2005   #6 (permalink)
Just Joined!
 
Dpontes11's Avatar
 
Join Date: Nov 2005
Location: Gondomar, Portugal
Posts: 68
Send a message via MSN to Dpontes11
Ok, so this is what came up:

Code:
Operation Not Permitted
a bit generalistic, i guess...

Maybe knoppix really doens allow the creation of FIFO's.
Dpontes11 is offline   Reply With Quote
Old 12-03-2005   #7 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Are you root at the time?
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 12-05-2005   #8 (permalink)
Just Joined!
 
Dpontes11's Avatar
 
Join Date: Nov 2005
Location: Gondomar, Portugal
Posts: 68
Send a message via MSN to Dpontes11
yes,i am... any suggestions yet, or are you as lost as me?
Dpontes11 is offline   Reply With Quote
Old 12-05-2005   #9 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Well according to
Code:
errno(3)
, "Operation not Permitted" is associated with EPERM. According to mknod(2):
Code:
 EPERM  mode requested creation of something other than a regular  file,
              FIFO  (named pipe), or Unix domain socket, and the caller is not
              privileged (Linux: does not have the CAP_MKNOD capability); also
              returned  if the filesystem containing pathname does not support
              the type of node requested.
What kind of filesystem are you trying this on?
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:03 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2