in reply to Accessing SMB Shares from Linux
And of course you can access the file with a tied file handle for convenience as well.use POSIX; use Filesys::SmbClient; my $smb = new Filesys::SmbClient(username => "alian", password => "speed", workgroup => "alian", debug => 10); # Read a file my $server="jupiter"; my $path="doc/general.css"; my $fd = $smb->open("smb://$server/$path", '0666'); while (defined(my $l= $smb->read($fd,50))) { print $l; } $smb->close(fd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Accessing SMB Shares from Linux
by TheFluffyOne (Beadle) on Nov 26, 2003 at 09:28 UTC | |
by Roger (Parson) on Nov 26, 2003 at 09:37 UTC |