高手出招!怎么在DEPHI编写的客户端程序中调用远程小型机(UNIX)的系统命令

高手出招!如何在DEPHI编写的客户端程序中调用远程小型机(UNIX)的系统命令?
手头有项目需要实现,在delphi编写的客户端程序中,调用后台小型机(操作系统是UNIX)的命令功能,请能人帮忙。

------解决方案--------------------
使用indy 里的IdRexec就可以替代上面的ActiveX组件
使用IdRexec实现上面那个ActiveX中的部分代码
Telnet1.Rexec "myhost", "myUsername", "myPassword", "reboot"

------解决方案--------------------
Delphi(Pascal) code
  
不知道可以不?没测试哦
 IdRexec1.Host:='192.168.168.1';
  IdRexec1.Port:=8888;
  IdRexec1.Username:='username';
  IdRexec1.Password:='password';
  self.IdRexec1.
  try
    self.IdRexec1.Connect( 5000 );
    self.IdRexec1.Execute( 'Command' );
    self.IdRexec1.Disconnect;
  except
    //....
  end;