Command Shell

Closed Posted Apr 26, 2006 Paid on delivery
Closed Paid on delivery

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.

.NET C Programming Linux

Project ID: #57524

About the project

9 proposals Remote project Active Nov 26, 2006

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
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
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