unix system programming


 
Thread Tools Search this Thread
Top Forums Programming unix system programming
# 1  
Old 09-30-2004
unix system programming

hey there

i have to execute commands that are written on the command line in unix. i have already separated the commands into tokens but now im stuck with the problem of how to actually execute those commands.

eg: lets say the user entered " ls -l" to list all the files in a directory

pid_t pid;

if ( (pid = fork()) < 0)
fprintf(stderr,"fork error");

else if (pid == 0) { /* child */

// NOW WHAT GOES HERE ????
}


feedback would be appreciated.
thanks
mile1982
# 2  
Old 09-30-2004
See my response in this thread.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

UNIX System Programming Certification Program

Hi, I was working in an IT firm. My stream was UNIX, C, C++. worked for an year and half and then left the job. there has been a gap of 2 years already and wanna get back again. i have some 6 more months to that. want to do some certification to help me get back. c,c++ are fine. unix system... (1 Reply)
Discussion started by: niaR
1 Replies

2. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

3. Shell Programming and Scripting

System programming with Unix

Hi All I want to learn System programming with the help of Unix. System Programming mean to say 1) Playing with the memory of computer 2) Designing some graphical units Hope you understand... (2 Replies)
Discussion started by: parthmittal2007
2 Replies

4. Programming

What is Unix System Programming???

Hi friends, Hope u r doing well. I really find the phrase, "Unix System Programming" very very cool, I don't know the reason, but it since I love UNIX, I want to do system programming in unix. Could you please tell me what is really the meaning of unix system programming. I have a couple of books... (5 Replies)
Discussion started by: gabam
5 Replies

5. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

6. Programming

Unix System Programming Book

Hi, I've almost finished "Advanced Linux Programming" book. However, I feel as if I need dig deeper in IPC specially socket programming as well as multi-threading. Can anyone recommend a good book (preferably publically available)? (5 Replies)
Discussion started by: jaywalker
5 Replies

7. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

8. UNIX for Dummies Questions & Answers

Tell me some good unix project in system level programming...

this is very urgent plzzzzzzzzzzzzzzzz........... (0 Replies)
Discussion started by: stalin2020
0 Replies

9. Shell Programming and Scripting

Unix Systems Programming Vs Unix Programming

Several months ago I found a link that explained the difference between how a Unix Systems Admin would do scripting compared to what a Unix Programmer would do. It showed a basic script and then show several iterations that explained how the Systems Admin would change it to make it better. I was... (0 Replies)
Discussion started by: BCarlson
0 Replies

10. Programming

System programming in C

Hi there, Am very very interested in system level programming in C???? Please give me a good site or a sample program to start with.. will be of a great help to me.. Thanks, Nisha (7 Replies)
Discussion started by: Nisha
7 Replies
Login or Register to Ask a Question