Subject: bin/5696: mt(1) doesn't mention RCMD_CMD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bgrayson@ece.utexas.edu>
List: netbsd-bugs
Date: 07/02/1998 21:00:53
>Number:         5696
>Category:       bin
>Synopsis:       mt(1) doesn't mention RCMD_CMD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul  2 19:05:00 1998
>Last-Modified:
>Originator:     Brian Grayson
>Organization:
	Parallel and Distributed Systems
	Electrical and Computer Engineering
	The University of Texas at Austin
>Release:        June 30, 1998
>Environment:

>Description:
	mt(1) supports alternate means of starting processes on
	remote machines besides rsh (i.e., ssh).  However, the
	man page does not mention this.
	
>How-To-Repeat:
	Desire to run mt host:dev on a cluster that has rsh
	disabled.  Look at source code.  Look at man page.
	
>Fix:
--- mt.1.orig   Thu Jul  2 20:45:02 1998
+++ mt.1        Thu Jul  2 20:54:18 1998
@@ -65,6 +65,12 @@
 .Nm
 writes to the named tape device on the remote host using
 .Xr rmt 8 .
+The rmt process on the remote host is typically
+initiated via 
+.Xr rsh 1 ,
+although an alternate method such as ssh can be specified via
+the RCMD_CMD environment variable.
+
 .Pp
 The available commands are listed below.  Only as many
 characters as are required to uniquely identify a command
@@ -155,7 +161,7 @@
 returns a 0 exit status when the operation(s) were successful,
 1 if the command was unrecognized, and 2 if an operation failed.
 .Sh ENVIRONMENT
-If the following environment variable exists, it is utilized by
+If the following environment variables exist, they are utilized by
 .Nm "" .
 .Bl -tag -width Fl
 .It Ev TAPE
@@ -166,6 +172,11 @@
 argument
 .Ar tapename
 is not given.
+
+.It Ev RCMD_CMD
+.Nm 
+will use RCMD_CMD rather than /usr/bin/rsh to invoke rmt on a remote
+machine.  (The full path name must be specified, of course.)
 .Sh FILES
 .Bl -tag -width src/sys/dev/scsipi/scsi_tape.h -compact
 .It Pa /dev/rst*

	
>Audit-Trail:
>Unformatted: