Re: [suse-sles-e] smbclient copy from linux box to windows

From: Joachim Banzhaf (joachimbanzhaf_at_compuserve.de)
Date: Mon Sep 11 2006 - 15:10:28 CEST


From: Joachim Banzhaf <joachimbanzhaf@compuserve.de>
Date: Mon, 11 Sep 2006 15:10:28 +0200
Message-Id: <200609111510.28996.joachimbanzhaf@compuserve.de>
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



This archive was generated by hypermail 2.1.7 : Mon Sep 11 2006 - 21:58:34 CEST