Closed

Command Shell

project is to write a simple shell - myshell - that has the following properties:

1. The shell must support the following internal commands:

i. cd - change the current default directory to . If the argument is not present, report the current directory. If the directory does not exist an appropriate error should be reported. This command should also change the PWD environment variable.

ii. clr - clear the screen.

iii. dir - list the contents of directory

iv. echo - display on the display followed by a new line (multiple spaces/tabs may be reduced to a single space)

v. help - display the user manual using the more filter

vi. pause - pause operation of the shell until 'Enter' is pressed

vii. quit - quit the shell

2. The shell must be able to take its command line input from a file. i.e. if the shell is invoked with a command line argument:

myshell batchfile

then batchfile is assumed to contain a set of command lines for the shell to process. When the end-of -file is reached, the shell should exit. Obviously, if the shell is invoked without a command line argument it solicits input from the user via a prompt on the display.

3. The shell must support i/o-redirection on either or both stdin and/or stdout. i.e. the command line:

programname arg1 arg2 outputfile

will execute the program programname with arguments arg1 and arg2, the stdin FILE stream replaced by inputfile and the stdout FILE stream replaced by outputfile.

stdout redirection should also be possible for the internal commands: dir, environ, echo, & help.

With output redirection, if the redirection character is > then the outputfile is created if it does not exist and truncated if it does. If the redirection token is >> then outputfile is created if it does not exist and appended to if it does.

4. The shell must support background execution of programs. An ampersand (&) at the end of the command line indicates that the shell should return to the command line prompt immediately after launching that program.

5. The command line prompt must contain the pathname of the current directory.

Skills: .NET, C Programming, Linux

See more: obviously shell invoked without, o 1 space, c# programs with output, at properties, programname arg1 arg2 inputfile outputfile, shell must support background execution programs, vi, reached, operation manual, exit, execution, command, clr, without support, myshell batchfile, report variable, filter amp, character created, background process, command help, command command, write simple shell, operation pause, internal error, character environment

About the Employer:
( 0 reviews ) ae, United Arab Emirates

Project ID: #57524

9 freelancers are bidding on average $58 for this job

MMaghawry

I can do this for you using .Net ( C# or Vb.net ) and you will see my work

$60 USD in 2 days
(61 Reviews)
5.9
SODEVROM

We can do this fast, at a low cost and [url removed, login to view] check message board. Thank you

$60 USD in 2 days
(14 Reviews)
5.7
Shot

Wide experience of programming on C.

$30 USD in 5 days
(9 Reviews)
5.8
Aurochs

See PMB, please.

$75 USD in 5 days
(46 Reviews)
4.8
grshadow

Will be happy to help you.

$60 USD in 7 days
(5 Reviews)
4.8
sunshengyu

24 hours. 33 dao. let's help each other.

$30 USD in 1 day
(2 Reviews)
3.6
webdoers

We're the team of enthusiastic and technically conscious highly qualified engineers, with core software industry experience. Our team have 25 man-years experience. They are serving the key position in their respective More

$100 USD in 30 days
(2 Reviews)
2.6
balanagireddy

I am a student graduating this year from India's premier institute.I already did a similar project for my operating systems course.A few modifications to that project will work for this project.I will complete the proj More

$60 USD in 2 days
(3 Reviews)
1.4
epammanager

I have good experience in Lunix system programming, so can easily do this small project.

$30 USD in 3 days
(0 Reviews)
0.0
tanyagrover

I have 4 years of experience in c/c++ programming and right now i am working on a similar project for some network application so i can assure you a great project in a very short period of time

$50 USD in 3 days
(0 Reviews)
0.0