![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how torun an awk scrip from a web page | rachana8p | UNIX for Advanced & Expert Users | 2 | 01-12-2007 05:23 AM |
| Using cp command inside shell scrip | yoavbe | Shell Programming and Scripting | 2 | 06-22-2006 06:57 AM |
| Sftp Scrip | HROMERO | UNIX for Advanced & Expert Users | 1 | 10-19-2005 01:57 PM |
| If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip | hchivukula | UNIX for Dummies Questions & Answers | 1 | 06-12-2005 05:34 AM |
| Execute an Oracle stored procedure from a shell scrip | mh53j_fe | Shell Programming and Scripting | 1 | 06-03-2005 12:17 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to write this scrip
Please help me to write a program that accepts a command from the terminal displaying a shell like prompt to accept the command.If the command is logout, the program is terminated. For any other command, it forks a child process passing the command to the child, and then waits for the child to terminate. The child process executes the command using one of the execution function, and then exists. The parent should then print the exit status of the child after analyzing the exit status using available macros, and again waits for the next command to read in. Note that a command may consists of many words seaprated by blanks. If the command is not a 'logout',the first word denotes an execuable file and the remaining words are parameters to the program in the executable file.
Thanks |
| Forum Sponsor | ||
|
|