Dear Team,

I have a Issue while using Filesys::SmbClientParser

Below is my code :
#!/usr/bin/perl
use Filesys::SmbClientParser ;
$smb = new Filesys::SmbClientParser(undef, (user => $input_hash{DMS_USER},
password => $input_hash{DMS_PASS}));
$path = "\path\to\folder" ;
$share = "d$" ;
$ip = "192.168.0.125" ;
$file = "test.txt" ;
$rv =$smb->Host($ip);
$rv =$smb->Share($share);
$rv =$smb->cd($path);
$rv =$smb->put($file);

When i execute the above code i got the following Error :

sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file

But With the Same Code  ( With slight Change )  It works Fine

#!/usr/bin/perl
use Filesys::SmbClientParser ;
$smb = new Filesys::SmbClientParser(undef, (user => $input_hash{DMS_USER},
password => $input_hash{DMS_PASS}));
$path = "\path\to\folder" ;
$share = "d$" ;
$ip = "192.168.0.125" ;
$file = "test.txt" ;
$rv =$smb->Host($ip);
$rv =$smb->Share($share);
$rv =$smb->cd('/path/to/folder');     ( Embeded the Path in single Quotes )
( Even it is not working with Double Quotes )
$rv =$smb->put($file);

How Can i get rid of this issue

Please anyone resolve my issue

thanks in advance

-- 
*Anand | Tools and Automation | Appnomic systems | 9591998198*

Reply via email to