teleron has asked for the wisdom of the Perl Monks concerning the following question:

I have worked out a way of crudely using a network drive in my windows controlled network from my linux box using the Expect module to control smbclient. It seems to work fine, but it seems kind of crude. As I understand it samba is for letting a linux file server live in a windows environment, but smbclient is for letting a linux client work in a windows environment. In any case the quickest way I found to get this to work was with Expect.pm. Am I totally missing a brain? Is there a module made for this function?

Replies are listed 'Best First'.
Re: Using a windows network drive
by Beatnik (Parson) on Jul 28, 2001 at 10:03 UTC
Re: Using a windows network drive
by rchiav (Deacon) on Jul 28, 2001 at 07:13 UTC
    Are you referring to mounting a netbios share to the linux filesystem? If so, just use (taken from the smbmount help)
    mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/t +est
    I'm really not sure where expect.pm has anything to do with you mounting netbios shares. And I'm really not sure what the Perl part is..