Sponsored Content
Full Discussion: Struggling with mkfifo
Top Forums UNIX for Dummies Questions & Answers Struggling with mkfifo Post 49975 by Optimus_P on Wednesday 14th of April 2004 05:14:57 PM
Old 04-14-2004
if a user was allowed to mknod he woudl be able to create his own device files and could potentially really mess things up for an administrator.

mkfifo allows you to create a buffer area that is read by different process.

mknod is very strong. i would put it up there w/ allowing a user to issue adn execute the format utility.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

struggling with addusr ...

I'm completely new to UNIX, and having got the hang of directory navigation / creation (Just about), I think it is time to create an FTP account, so that I can upload a web site remotely. Herein lies the problem... 1: I cannot find a breakdown of addusr commands, so I cannot create a... (2 Replies)
Discussion started by: Dufty
2 Replies

2. Shell Programming and Scripting

Struggling with a text file

Hi, I am struggling with the following... I try to grep out information of a text file I got with lynx, a text browser. The text file I get from lynx with dump is attached in the bottom. What I would like to get is another file containing the astro-ph/98324 (number) and title and list of... (13 Replies)
Discussion started by: pau
13 Replies

3. UNIX for Advanced & Expert Users

Help- Unix File Compare- Struggling

I had posted this earlier about 3 weeks ago and had recieved a response and I did sort both the files and the comm command is still not working. Can someone please assist me, I would really appreciate it. Below is what I am trying to do I need to compare File A with File B and create FILE C... (2 Replies)
Discussion started by: guiguy
2 Replies

4. Shell Programming and Scripting

struggling within awk

!#/bin/bash cat input.sh | awk ' { cur1=tolower($1) cur2=tolower($2) rsh $cur1 report | grep $cur2 # i just want to make the code line to work } ' the error which i get is .... ./madh1.sh: line 1: !#/bin/bash: No such file or directory awk: cmd. line:13: rsh $cur1 report |... (4 Replies)
Discussion started by: geeko
4 Replies

5. Shell Programming and Scripting

Struggling with arrays and delimited file

Hi, I am trying to use arrays in my script but can not seem to get it to work. I have a file called sections, this contains headers from a tripwire log file, separated by "@" but could be "," if easier The headers will be used to cut sections from the log file into another to be mailed. ... (5 Replies)
Discussion started by: pobman
5 Replies

6. Shell Programming and Scripting

Struggling with AWK

I know this is an easy problem, but I've been struggling with it all morning and finally admit I need help. I have two files that I need to compare. After doing this the easy way (grep -F) I realize that there are other fields in file2 that match field1 in file1, so I turned to awk. I want to... (7 Replies)
Discussion started by: moldoverb
7 Replies

7. Programming

Help with Mkfifo and exec

Hello guys! I am doing a project for the university and I have to do that a process has to create several children through fork(). The father process sends a pathname to each one through exec and the children must send to the father a list with the files from each directory. The father is... (1 Reply)
Discussion started by: dano88
1 Replies

8. Homework & Coursework Questions

Help with Mkfifo and exec

Hello guys! I am doing a project for the university and I have to do that a process has to create several children through fork(). The father process sends a pathname to each one through exec and the children must send to the father a list with the files from each directory. The father... (1 Reply)
Discussion started by: dano88
1 Replies

9. UNIX for Dummies Questions & Answers

Struggling to combine two Greps statements

Greetings! I have been tasked to create a report off files we receive from our hardware suppliers. I need to grep these files for two fields 'Test_Version' and 'Model-Manufacturer' ; for each field, I need to capture their corresponding values. When running each statement separately, I get... (4 Replies)
Discussion started by: alan
4 Replies

10. Shell Programming and Scripting

Parsing file: struggling against sed command

Hello fellows, Sure you can help this poor guy that is struggling against sed command, being unable to tame it I have a lot of files like this: From this one, I need to obtain values highlighted in bold/red To do so, I am executing this piece of code inside a loop: ... (10 Replies)
Discussion started by: manolain
10 Replies
explain_mknod_or_die(3) 				     Library Functions Manual					   explain_mknod_or_die(3)

NAME
explain_mknod_or_die - create a special or ordinary file and report errors SYNOPSIS
#include <libexplain/mknod.h> void explain_mknod_or_die(const char *pathname, mode_t mode, dev_t dev); int explain_mknod_on_error(const char *pathname, mode_t mode, dev_t dev); DESCRIPTION
The explain_mknod_or_die function is used to call the mknod(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_mknod(3) function, and then the process terminates by calling exit(EXIT_FAILURE). The explain_mknod_on_error function is used to call the mknod(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_mknod(3) function, but still returns to the caller. pathname The pathname, exactly as to be passed to the mknod(2) system call. mode The mode, exactly as to be passed to the mknod(2) system call. dev The dev, exactly as to be passed to the mknod(2) system call. RETURN VALUE
The explain_mknod_or_die function only returns on success, see mknod(2) for more information. On failure, prints an explanation and exits, it does not return. The explain_mknod_on_error function always returns the value return by the wrapped mknod(2) system call. EXAMPLE
The explain_mknod_or_die function is intended to be used in a fashion similar to the following example: explain_mknod_or_die(pathname, mode, dev); SEE ALSO
mknod(2) create a special or ordinary file explain_mknod(3) explain mknod(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2009 Peter Miller explain_mknod_or_die(3)
All times are GMT -4. The time now is 06:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy