Question

My shell program in C programming; write a simple shell support internal commands that has the...

My shell program in C programming;

write a simple shell support internal commands that has the following properties :

1. micd <directory> change the current default directory to <directory>

2. myclr -clear the screen

3. mydir <directory> list the content of directory

The shell environment should contain shell=<pathname>/myshell where <pathname>/myshell is the full path for the shell.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
My shell program in C programming; write a simple shell support internal commands that has the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • You are required to develop a simple Linux shell in C language “shell.c". The shell has...

    You are required to develop a simple Linux shell in C language “shell.c". The shell has to perform the following requirements: - - The shell prompt is “"myshell>". - Run commands either from current directory or from “/bin" directory using the "exec" system call. - Support output redirection like "command> filename" using "dup" system call. Note: save the output of the comment in the (filename). - Implement the “history shell command to list the last ten commands entered so far....

  • Write a script using simple shell commands. The script takes a command line argument that specifies...

    Write a script using simple shell commands. The script takes a command line argument that specifies a directory dir. The script first changes directory to dir, then prints the following in sequence: (a) A line starting “Current date and time: ”. Then on the same line, the current time and date. (b) A line starting “Current directory is : ”. Then, on the same line, the absolute pathname of the current working directory. (c) An empty line (d) The line...

  • Design and implement a simple, interactive shell program that prompt the user for a command, parser...

    Design and implement a simple, interactive shell program that prompt the user for a command, parser the command (you do not need to write a parser) and then execute it. The commands are: attrib file. To make the file read only. copy fileA fileB To copy fileA into fileB. delete file To delete the file. dir name or just dir The listing of the directory name is displayed. In case of just dir, the list of the      items in the current...

  • Write a simple single thread CSC4420 shell , i.e., no concurrent commands, to support at least...

    Write a simple single thread CSC4420 shell , i.e., no concurrent commands, to support at least the following built-in commands: prompt can set to any string you input, in addition to the current history event number, i.e, %h as in csh; url : list the course web site hour : list class times room : list classroom location desp : list the description of this course text : list the textbook ref : list the reference books prof : list...

  • Project 1: Implementing a Shell 1 Overview In this individual project you will have to design...

    Project 1: Implementing a Shell 1 Overview In this individual project you will have to design and implement a simple shell command interpreter called mysh. The basic function of a shell is to accept lines of text as input and execute programs in response. The shell must be able to execute built-in commands in a process different from the one executing mysh. 2 Requirements When first started, your shell should initialize any necessary data structures and then enter a loop...

  • Write a C program that implements a simple shell. The shell takes a user command as...

    Write a C program that implements a simple shell. The shell takes a user command as input and execute the command. When a shell is started, it should take user command, execute it and display the output.

  • In C Programming Language, write a simple program to read one text file and print to...

    In C Programming Language, write a simple program to read one text file and print to screen all its text. Make use of the stderr and exit program statements should there not be only one text file identified on the command line. If successful then before fclose of the text file, use the fputs program statement to write a line "72 degrees Sunny light wind. Nice!\n". print the return code of fputs (should be zero). close and exit. Test program...

  • Creating a Shell Interface Using Java This project consists of modifying a Java program so that...

    Creating a Shell Interface Using Java This project consists of modifying a Java program so that it serves as a shell interface that accepts user commands and then executes each command in a separate process external to the Java virtual machine. Overview A shell interface provides the user with a prompt, after which the user enters the next command. The example below illustrates the prompt jsh> and the user’s next command: cat Prog.java. This command displays the file Prog.java on...

  • Need help with question 25 program from 9.1 basic programming content. 25.) Write a program to...

    Need help with question 25 program from 9.1 basic programming content. 25.) Write a program to question a person about his or her computer and then display a descriptive sentence in a text box. The form should contain combo boxes, for brand, amount of memory, and screen size. The lists should contain the most common responses for each category. Some common computers are Compaq, Dell, Hewlett-Packard, Lenovo, and Apple. The most common amounts of memory are 4GB, 8GB, and 32...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT