Writing a Shell

The new project in the OS class is to write a java based shell emulation. I’m excited - this sounds like a really fun assignment. In fact, it just seems a wee bit easy. All you really need to do is to parse user input and traverse the file system.

Requirements are really easy - do include equivalents of ls, mkdir, cd and date, keep history of n most recently used commands, and m most recently visited directories. Not much else. Sounds like cake…

What I really want to explore is to mimic pipes and input/output redicection, and letting the user to execute native programs by using Javas Runtime exec method. It also doesn’t seem that difficult if you think about it.

Dr. Robila reccomended that those who can’t figure this assignment out can allways attempt to buy code from zewrestler who was the only person in class who managed to implement this last semester. Hehe…

Tags: , , , , ,

Related Posts:

  • The Shell is Done
  • Vi or Emacs? Which one do you use?
  • Moving Forward
  • Pegasus is up again!
  • Run PNGOUT on all PNG Files in a Folder
  • Ghostly Farts in the Shell
  • Remove .svn Folders from the Project Directory
  • Why would anyone do this?
  • Substrings in Windows Batch Files
  • Screen

  • One Response to “Writing a Shell”

    1. Gravatar ZeWrestler UNITED STATES Says: Reply to this comment

      ?*stands up and takes a bow*

      stnndard price for that code. ussual routine, first born child and a new jag.

      but the UML i made for it, i’ll give out for free (if i can find it) lol

      enjoy that was a fun project. if you decide that you want to expand that shell afterwards let me know, the rediection and pipes sounds fun.

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]