mini shell programming (help)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers mini shell programming (help)
# 1  
Old 10-27-2006
mini shell programming (help)

Hi All,
Well i m a taking an operating system course (newbie to unix)
we have studied till now: the fork () execv()
the teacher asked us to create a mini shell that execute a user command:

cmd1 [<input] [ !cmd2][>output]

he said everything in [] is optional we can use any combination

Well dudes , i m really in a big trouble,can someone help me to start writing the proram or telling me exactly what to do ??

thanks in advance
# 2  
Old 10-27-2006
sorry Dude i have just read rule #6
i really apologize but i needed an urgent help in order to start working n it
# 3  
Old 10-27-2006
Now that you have discovered that the rules are violated, I have to lock this thread. A positive reply would violate the rules again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with shell programming

1)Shell program which displays a list of all files in the current directory to which you (other than owner and group) have only read and execute permission. 2)Shell program which deletes all the lines containing the word 'UNIX' in the files supplied as arguments to this program. 3)Shell... (1 Reply)
Discussion started by: Ramanath
1 Replies

2. Shell Programming and Scripting

Thompson MSH(mini-shell)

Hi Guys! Recently, I disassemble the MSH. And reconstructed. I thought maybe somebody wants to see looked like a second shell. In practice, the most ancient shell. It is written in assembler (AT&T). Owner Ken Thompson, Dennis Ritchie. mov $parbuf,r1 mov $parp,r2 clr r3 jsr pc,blank... (0 Replies)
Discussion started by: GLbS
0 Replies

3. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

4. Shell Programming and Scripting

Shell Programming

Hi ULF, Good day! Let's say I have an input file similar to this one below: content-type 699 label SAMPLE1 pattern ip-address host 10.10.10.10 host 12.12.12.12 end udr udr-type TEST ... (2 Replies)
Discussion started by: rymnd_12345
2 Replies

5. Shell Programming and Scripting

shell programming

Hi iam new to shell programming. I would like to ask one dought abt the file handling in unix. Iam having a file1 as follows: ASDERFCX1234567890123456 POIUYTRE0098765432123456 BVCXCVBN0955644411111111 File2 ASDERFCX1234567890123456 kill@abc.com ... (8 Replies)
Discussion started by: nivas
8 Replies

6. Shell Programming and Scripting

{} in shell programming

Could someone please tell me what {} mean when they surround a variable? For instance, $FILE = 'basename $1' //what is passed into this script $BANK = 'dirname $1' $INFILE = ${FILE}.${BANK}.$$ What does $INFILE contain after this assignment? Please let me know Thanks G (4 Replies)
Discussion started by: vgirijanaidu
4 Replies

7. Shell Programming and Scripting

Shell Programming

Provides a menu structure that allows a user to select several options - input a name and address, lookup a name and address, delete a name and address, and print a formatted report from a text database (note: this requirement assumes that you will use the program to create a database, though in... (1 Reply)
Discussion started by: DonOmar
1 Replies

8. Programming

Mini Shell in C

Hi Everyone, I am a student learning C and Unix. I want to create a shell in C which accepts command line arguments and executes them. I am not sure how to do this. Any help would be greatly appreciated. Thanks (5 Replies)
Discussion started by: passat
5 Replies

9. Shell Programming and Scripting

Shell Programming?

For what purposes should we use shell /what are the tasks we can achieve using shell which is best book to learn shell programming and will nayone tell me diff between shell programming aand shell scripting? Thank u in advance. (1 Reply)
Discussion started by: shrikrishna
1 Replies

10. UNIX for Dummies Questions & Answers

Shell Programming Help

Hi, I am new to shell programming, and hve been given a request to write a shell script. Is there any good places to go to see examples of how to write shell programming scripts? Thanks (4 Replies)
Discussion started by: mec585858
4 Replies
Login or Register to Ask a Question