Hello EssJay,
This is a bit complicated, but when working is a fine method of automating remote administration.
First, you must establish trusted roles using /etc/hosts.equiv and/or /.rhosts files to enable the rsh processing. See the man pages for this.
Next you will need to build a Launch Script on the local machine. Here's an example:
#!/bin/sh
#####
# Remote Administration Launcher.
#####
xhost +
# Better would be xhost username, but simple works too.
rsh remotehostname "/path/RemoteControl.sh localhost" &
# This will start the script on the remote machine.
rsh remotehostname2 "/path/RemoteControl.sh localhost" &
# As many as you want.
exit 0
Then on the remote host. Create this example:
#!/bin/sh
#####
# RemoteControl.sh Script.
#####
DISPLAY=$1:0.0
export DISPLAY
# You could use xterm....
/usr/openwin/bin/xterm -e /yourpath/ControlScript.sh &
# Or you could use dtterm. See the man pages for each.
/usr/dt/bin/dtterm -e /yourpath/ControlScript.sh &
exit 0
You could compress most of the remote startup into the local script if your xterm command is simple. I recommend setting it up this way so you can more easily cusomize the xterm window and its behavior.
Lastly, if you have automounting set up, you could put all of the scripts in one location. Then set up the path for automounting in the automount configuration. This will allow you to manage your scripts from one location, yet still remote execute them.
Have Fun!
Charlie Ehler