The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 08:57 PM
Tell me some good unix project in system level programming... stalin2020 UNIX for Dummies Questions & Answers 0 01-21-2008 12:59 PM
System programming in C Nisha High Level Programming 7 03-12-2006 07:17 PM
System programming book ajit_gupta High Level Programming 1 03-12-2006 06:07 PM
System Programming rachael High Level Programming 3 10-23-2001 01:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-30-2004
mile1982 mile1982 is offline
Registered User
  
 

Join Date: Sep 2004
Location: Down Under
Posts: 11
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 (permalink)  
Old 09-30-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
See my response in this thread.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0