Skip to main content

Creating new shell commands

1 reply [Last post]
Joined: 2008-09-29

I am trying to develop new shell commands for the jxta shell.Is there any possibility of using the existing shell commands to create new one as they save a lot of development work.I saw in the documentation of ShellApp class, which every new command has to inherit , a method called exec to execute existing commands.Are my assumptions correct.Pls guide me


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-11

Yes, you can write your own shell commands fairly easily. ShellApp may not be the best resource for understanding how to write your own shell commands. For this you should look at the built-in shell commands and copy them freely. Most of the shell commands have been specifically written so that the code is easy to understand and reuse.