[Samba] SMBCLIENT and PERL
Joel Hammer
Joel at HammersHome.com
Thu Feb 7 17:04:02 GMT 2002
Well, your first script works on my machine, although I changed it to:
print `smbclient //thor/w-drive -Uuser%pass -c "cd temp;lcd /home/test;put testfile.txt testfile.txt"`
^^^^^^^^^^
So, you are doing something wrong.
Joel
On Thu, Feb 07, 2002 at 04:00:51PM -0800, Brian wrote:
> 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
> >
>
>
> --
> 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