Won't work as a batch file, smbclient is working correctly you need to
be running an expect script that feed smbclient until done(man expect is
your friend). Another option would be to mount the share (using
"smbmount" or "mount -t smbfs") and then just use cp to put files on the
share and then unmount it.
Cheers,
Davidm
On Tue, 2003-07-15 at 11:44,
elemint@cox.net wrote:
> Here is the batch file in question:
>
> smbclient \\\\servername\\sharename -U <username> -N
> sleep 2
> put deleteme testagaina11
> quit
> exit
>
>
>
> James
> >
> > From: "Jeremy C. Reed" <reed@reedmedia.net>
> > Date: 2003/07/15 Tue PM 02:24:20 EDT
> > To: plug-discuss@lists.plug.phoenix.az.us
> > Subject: Re: Samba Script not completing
> >
> > On Tue, 15 Jul 2003 elemint@cox.net wrote:
> >
> > > I have created a script to backup my Linux box to another machine
> > > although once it connects in it does not execute the put statement to
> > > move the files over, I even added a sleep statement so that it sleeps
> > > for 2 seconds then it should start the next command although all I get
> > > is the first command is processed and then it just sits at the smb
> > > prompt.
> >
> > Show us.
> >
> > Jeremy C. Reed
> > http://www.reedmedia.net/
> >
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
David IS Mandala
gpg fingerprint 8932 E7EF CCF5 1B8C 1B5C A92E C678 795E 45B2 D952
Phoenix, AZ (480) 460-7545 HP, (602) 741-1363 CP
http://www.them.com/~davidm/