1834346 Members
2129 Online
110066 Solutions
New Discussion

command mt

 
SOLVED
Go to solution
castro_2
Regular Advisor

command mt

How can I do this commands to DDS remote?

mt -t /dev/rmt/0mn offl
mt -t /dev/rmt/0mn rew

Is it possible?

Thanks
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: command mt

I think you would need to use remsh: remsh hostname -n mt -t /dev/rmt/0mn offl



Pete

Pete
Geoff Wild
Honored Contributor

Re: command mt

Well, you could do it like this:

remsh remotesystem "mt -t /dev/rmt/0mn offl"
remsh remotesystem "mt -t /dev/rmt/0mn rew"


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
S.K. Chan
Honored Contributor

Re: command mt

Have you try ..
$ mt -f : rew
It may work, just like the GNU version of mt command. Do a man on mt to see if "-f" is supported.
castro_2
Regular Advisor

Re: command mt

In case that can't I use remsh, because is not avaliable?
castro_2
Regular Advisor

Re: command mt

Not, because is not permit for security.
Thanks
Patrick Wallek
Honored Contributor

Re: command mt

There is no way to do directly with the mt command.

If you have ssh installed and configured you can do the following:

# ssh remote_host "mt -t /dev/rmt/0mn offl"

If you don't have ssh and don't allow the r* commands, you are pretty much out of luck.