How To Copy The File To The Windows NT? Filesys::SmbClientParser
From: Fabio (fabio_at_anti-spam.inet.alpha.pl)
Date: 12/30/03
- Previous message: Thomas Dickey: "Re: parse unix-style difference reporting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 19:36:35 +0100
Hello,
I'm trying to put the file into the Windows NT server using the Perl
script but it doesn't work. Just look at the following script:
use Filesys::SmbClientParser;
my $fl = '/temp/file.txt';
my $smb = new Filesys::SmbClientParser
(undef, (user => 'user', password => 'pass'));
$smb -> Host ('191.254.1.1');
$smb -> Share ('tdsa_b$');
$smb -> cd ('IN');
$smb -> put ($fl);
The only message I get looks like this:
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
What could be wrong here? Is there any other way to put this file into
the Windows NT server? I cannot mount the file share under using the
'system' or 'exec' function because it doesn't work.
When I use
smbmount //191.254.1.1/tdsa_b$ /mnt/test -o user=user,password=pass
under the Linux command prompt it works fine. But if I put that command
into `` or Perl 'system' function it shows me the following message:
Could not resolve mount point
Any ideas? Thanks for any advice.
..:: fabio
- Previous message: Thomas Dickey: "Re: parse unix-style difference reporting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]