Test remote dumping with a user specified as well.

This commit is contained in:
Tim Shimmin
2001-05-09 08:38:23 +00:00
parent a777d6221e
commit 6c2f20613b
5 changed files with 170 additions and 2 deletions
+10 -2
View File
@@ -87,9 +87,17 @@ _mt()
op=$1
if _isrmt; then
# REMOTE
_rmthost=`echo $dumptape | awk -F: '{print $1}'`
_rmtdev=`echo $dumptape | awk -F: '{print $2}'`
rsh -n $_rmthost "mt -t $_rmtdev $op"
if echo $dumptape | grep '@' >/dev/null; then
_spec=`echo $dumptape | awk -F: '{print $1}'`
_rmtuser=`echo $_spec | awk -F@ '{print $1}'`
_rmthost=`echo $_spec | awk -F@ '{print $2}'`
rsh -n -l $_rmtuser $_rmthost "mt -t $_rmtdev $op"
else
_rmthost=`echo $dumptape | awk -F: '{print $1}'`
rsh -n $_rmthost "mt -t $_rmtdev $op"
fi
else
#LOCAL
mt -t $dumptape $op