[SLL] script works but improvement desirable

Ana christiana at hipointcoffee.com
Mon Apr 28 10:53:04 PDT 2008


On Mon, Apr 28, 2008 at 10:38:36AM -0700, William Kreuter wrote:
> I want to connect my RHEL 3-5 boxen to my winXP
> laptop via vncviewer and rdesktop.  The laptop's
> addresses are assigned by DHCP and change
> occasionally.  The following is suitable for a
> script, but only as long as I've initiated a
> connection from the laptop's My Network Places to
> the Linux box:
> 
> vncviewer `smbstatus|grep -i laptop-netbios-name|cut -f2 -d'('|cut -f1 -d')'`
> 
> I can't find a tool to map the netbios name to its
> IP, so that I don't need to connect from the laptop
> first.

try:
$ net lookup host <netbioshostname>



More information about the linux-list mailing list