![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| how torun an awk scrip from a web page | rachana8p | UNIX for Advanced & Expert Users | 2 | 01-12-2007 08:23 AM |
| Using cp command inside shell scrip | yoavbe | Shell Programming and Scripting | 2 | 06-22-2006 09:57 AM |
| Sftp Scrip | HROMERO | UNIX for Advanced & Expert Users | 1 | 10-19-2005 04: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 08:34 AM |
| Execute an Oracle stored procedure from a shell scrip | mh53j_fe | Shell Programming and Scripting | 1 | 06-03-2005 03:17 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|