in reply to Net::Telnet "unknown terminal type"

tset is being run. Something is not ok with tset. You need to fix that From man 1 tset
Tset initializes terminals. Tset first determines the type of terminal that you are using. This determination is done as follows, using the first terminal type found. 1. The terminal argument specified on the command line.
And further down
Once the terminal type has been determined, the terminfo entry for the terminal is retrieved. If no terminfo entry is found for the type, the user is prompted for another terminal type.
This stuff is gold I tell you GOLD
TERMINAL TYPE MAPPING When the terminal is not hardwired into the system (or the current system information is incorrect) the terminal type derived from the /etc/ttys file or the TERM environmental variable is often something generic like network, dialup, or unknown. When tset is used in a startup script it is often desirable to provide information about the type of terminal used on such ports.
And further down still
/usr/share/terminfo terminal capability database

Replies are listed 'Best First'.
Re^2: Net::Telnet "unknown terminal type"
by Anonymous Monk on Jan 29, 2010 at 01:48 UTC
    Bit late I know, but I've had this problem also. Easiest fix is to put a 'TERM=vt100' in front of the command. So the command string that's executed should be ... TERM=vt100 ; pstree -A