The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts 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 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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-18-2005
Registered User
 

Join Date: Sep 2005
Posts: 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
  #2  
Old 09-18-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
This definitely looks like homework to me.. Search google for "writing your own shell" and check out this link.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0