[Samba] SMBCLIENT and PERL
Brian
batman at thundermail.com
Thu Feb 7 16:06:09 GMT 2002
That would be a good idea heh.
Actually I have tried two methods:
#!/usr/bin/perl
print `smbclient //thor/w-drive -A credentials -c "cd temp;lcd
/home/test;put
testfile.txt testfile.txt"`
OR:
#!/usr/bin/perl
open(SMBCLIENT,"|/usr/bin/smbclient //thor/w-drive -U testuser%testpass");
sleep(5);
print SMBCLIENT("cd imail");
print SMBCLIENT("lcd /home/test");
print SMBCLIENT("put testfile.txt");
sleep(20);
close(SMBCLIENT);
Neither one seems to authenticate as testuser
Brian Andrus
----- Original Message -----
From: "Joel Hammer" <Joel at HammersHome.com>
To: "Brian" <batman at thundermail.com>; <samba at lists.samba.org>
Sent: Thursday, February 07, 2002 8:16 AM
Subject: Re: [Samba] SMBCLIENT and PERL
> Why not include your PERL script? There may be a clue in it.
> Joel
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list