Results 1 to 2 of 2
  1. #1 is offline Member
    Join Date
    Oct 2009
    Rep Power

    Default How to create my own linux shell in java?

    Hi !!! I have been assigned a task to create my own shell like bash for linux. I have to implement few basic requirement in that shell like ..

    1) it should display the host name and username who is logged in:
    e.g. user@mypc:$ like in bash
    2) mostly used commands like cp, pwd, cd, ls
    3) running applications (optional)

    I searched a little bit but i cudnt find any reliable resource related to java though there were many regarding doing it in C. I just need a path because i have never done shell scripting or shell programming. Plz share if you know any good tutorial or resource.

    Thanks in advance.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    Read the API specs for the System.getProperty and the Runtime.exec methods.

Similar Threads

  1. Java Applet Shell script
    By karthikm897 in forum Java Applets
    Replies: 5
    Last Post: 08-18-2009, 04:42 AM
  2. Replies: 4
    Last Post: 06-24-2009, 06:34 AM
  3. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  4. How to create a Dialog Shell
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 07:52 PM
  5. Shell Sort in Java
    By Java Tip in forum Algorithms
    Replies: 0
    Last Post: 04-15-2008, 07:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts