Search Results

Search: Posts Made By: remid1985
Forum: Programming 01-17-2007
5,236
Posted By remid1985
display in a child process a command called in the parent one
Hi , Could you tell me if I am right
1. Using fork(), pipe(), execlp() and dup() (see man 2 dup), write a C program executing the command ps -j in a parent process, displaying the result in a...
1,714
Posted By remid1985
script in C
hello ,
I know that Unix shell command are in fact C functions behind.
I just need to do some unix funcitons in a C script like kill a process.
How can I do that?

I know how to get the pid .
...
3,777
Posted By remid1985
utility of getline here?
Hi everybody , I got a file user.list
user.list
London John
Bridge Peter
Denoyelle Rémi

I got a script
awk '{
command="echo "$1
command | getline echome
close(command)
print $0 "\t"...
3,777
Posted By remid1985
echome
hi , I got a script that I don't understand.


awk '{
command="echo "$1
command | getline echome
close(command)
print $0 "\t" echome
}' < user.list
It reads the file user.list
user.list...
3,775
Posted By remid1985
thanks so much
thanks so much
3,775
Posted By remid1985
separate information with a space character
Hi,

I would like to display a sorted list (based on the login name) of the login name, the home directory and the default shell of each user defined on the system ;

I just do
cut -d: ...
2,703
Posted By remid1985
I am a little confused. I got labs to...
I am a little confused.

I got labs to prepare and the question is

5. Normal links cannot be done on directories. What is the meaning of the "link field" for directories ?

I would answer ,...
2,703
Posted By remid1985
so the link field is the number of hard links...
so the link field is the number of hard links that is the number of directories that points on it?
2,703
Posted By remid1985
link field for directories
Hi everybody .
I am a newbie in UNIX.

I understood the concept of unix system files .

For normal files , the link field is the number of hard links that points to this file.

But there is...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy