TotalView User Guide : Part IV: Advanced Tools, Configuration, and Customization : Setting Up Remote Debugging Sessions : Troubleshooting Server Autolaunch : Changing the Remote Shell Command
Changing the Remote Shell Command
Some environments require you to create your own autolaunching command, for example, if your remote shell command doesn’t provide the security that your site requires.
If you create your own autolaunching command, use the tvdsvr -callback and -set_pw command-line options.
If you’re not sure whether rsh (or remsh on HP computers) works at your site, try typing “rsh hostname” (or “remsh hostname”) from an xterm window, where hostname is the name of the host on which you want to invoke the remote process. If the process doesn’t just run and instead this command prompts you for a password, add the host name of the host computer to your .rhosts file on the target computer.
For example, you can use the following combination of the echo and telnet commands:
echo %D %L %P %V; telnet %R
After telnet establishes a connection to the remote host, you can use the cd and tvdsvr commands directly, using the values of %D, %L, %P, and %V that were displayed by the echo command; for example:
cd directory
tvdsvr -callback hostname:portnumber -set_pw password
If your computer doesn’t have a command for invoking a remote process, TotalView can’t autolaunch the tvdsvr and you must disable both single server and bulk server launches.
For information on the rsh and remsh commands, see the manual page supplied with your operating system.
For more information on editing server launch commands, see Customizing Server Launch Commands”.