From: Black, Alain (ablack_at_bloodsystems.org)
Date: Mon Sep 11 2006 - 22:14:12 CEST
Date: Mon, 11 Sep 2006 13:14:12 -0700 Message-ID: <1066BDF1DAAA8040B54E0B5E270973100D4B28EA@bsimail.bloodsystems.org> From: "Black, Alain" <ablack@bloodsystems.org> Subject: RE: [suse-sles-e] smbclient copy from linux box to windows
> -----Original Message-----
> From: Joachim Banzhaf [mailto:joachimbanzhaf@compuserve.de]
> Sent: Monday, September 11, 2006 6:10 AM
> To: SLES List
> Subject: Re: [suse-sles-e] smbclient copy from linux box to windows
>
> Hi Peter,
>
> Am Montag, 11. September 2006 08:20 schrieb Peter Van Lone:
> > I'm trying to figure out how to use smbclient to push web server
logs
> > to a windows box that is running web trends.
> >
> > I don't want to use an interactive session (where you get to the
smb>
> > prompt) but rather just want to put together a script that can be
> > launched from cron so that once a day, the apache logs are copied
> > over.
> >
> > I've tried a variety of approaches -- do I have to mount the smb
share
> > first? Or, can I do a "fish like" thing they way I can in konqueror
-- > > just specify the URL? Would I do a cp [source] smbclient > > //server/share ?? > > I'd try mount -t cifs //winpc/winshare /mnt -ocredentials=/your/credfile > see man mount.cifs for more details and make sure credfile is readable by > and > only by the cron job user (probably root?) > > HTH, > > Joachim Banzhaf > > --------------------------------------------------------------------- > To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com > For additional commands, e-mail: suse-sles-e-help@suse.com [Black, Alain] Here's what I use for a cron script. #!/usr/bin/ksh smbclient //ServerName/ShareName Password -U Domain/UserName <<EOF cd DirectoryToChangeInTo translate put FileName exit EOF --------------------------------------------------------------------- To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Mon Sep 11 2006 - 22:42:38 CEST