![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to monitor process running on server and posting a mail if any process is dead | pradeepmacha | Shell Programming and Scripting | 13 | 03-06-2009 07:33 AM |
| UNIX System Call for creating process | chanikya | UNIX for Dummies Questions & Answers | 2 | 04-16-2008 04:36 PM |
| Creating an Ajax Process Using PHP and Oracle | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 06:10 AM |
| creating child process | Confuse | High Level Programming | 12 | 05-27-2005 12:48 PM |
| How to know a new file is in process of creating? It has not been closed. | linkjack | High Level Programming | 2 | 02-11-2003 01:55 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
creating 10 process
can anyone tell me how to Create ten processes and display useful information about them including PID, starting-time in unix using c or c++ language. i tried to create 10 different processes using fork and exec but i couldn't display those process info:PID,STIME.
my sample code ...... ...... pid = fork(); if(pid == 0) { execl("/bin/ls", "ls"); } elseif(pid == -1) { /error handling } else { execl("/bin/ps", ""ps); } ....... ........ parent process execute 'ps' command child process execute 'ls' command the script should display pid and stime of those processes:'ps' and 'ls'. like this i want to create 10 processes and display info.please give me ur suggestions to develope a code myself. ![]() Last edited by kpkant123; 05-20-2007 at 03:05 AM.. |
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|