Chapter 12. The JXTA Shell Reference

This chapter contains reference pages for the JXTA Shell. Chapter 2 shows the basic commands used by the shell; this chapter contains its complete set of options.

The JXTA Shell provides an interactive environment for the JXTA platform. The shell provides basic commands to discover peers and peergroups, to join and resign from peergroups, to create pipes between peers, and to send pipe messages. The shell provides environment variables that permit binding symbolic names to JXTA platform objects. Environment variables allow shell commands to exchange data between themselves. The shell env command displays all defined environment variables in the current shell.

The shell creates a JXTA input pipe (stdin) for reading input from the keyboard and a JXTA output pipe (stdout) to display information on the shell console. All commands executed by the shell have their initial stdin and stdout set up the shell’s stdin and stdout pipes. The shell also creates the stdgroup environment variable, which contains the current JXTA peergroup in which the shell and commands are executed.

A new shell can be forked within a shell. The Shell -s command starts a new shell with a new shell window. The shell can also read a command script file via the Shell -f myfile command.

The man command will list all available commands. Type man command to get help about a particular command. To exit the shell, use the exit command.

Here is a list of all the available ...

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.