Name
chpgrp — Changes the current peergroup
Synopsis
chpgrp name
Description
The
chpgrp
command changes the value of the shell
peergroup’s stdgroup
variable to
another group. The shell must have previously joined the new group by
using the join
command. All peergroup-related
commands, including discovery, happen in the peergroup specified by
the stdgroup
variable, which by default is the
NetPeerGroup.
Example
JXTA>mygroupadv = mkadv -g moi
JXTA>mkpgrp -d mygroupadv moi
JXTA>join moi
JXTA>mygroupadv = mkadv -g mygroup
JXTA>mkpgrp -d mygroupadv mygroup
JXTA>join mygroup
JXTA>chpgrp moi
This example creates and joins two peergroups:
mygroup
and moi
. After joining
mygroup
, mygroup
is the current
group. The chpgrp
command is used to change the
default group to moi
.
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.