Re: [Samba] smbclient doesn't work from cron

2011-04-26 Thread Andrew Masterson
> -Original Message- > From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] > On Behalf Of Bob Miller > Sent: Tuesday, April 26, 2011 10:09 AM > To: hel...@hullen.de > Cc: samba@lists.samba.org > Subject: Re: [Samba] smbclient doesn't work f

Re: [Samba] smbclient doesn't work from cron

2011-04-26 Thread Bob Miller
On Tue, 2011-04-26 at 16:04 +0200, Helmut Hullen wrote: > > I tell you I've restarted cron daemon and it always fails. > > > What's wrong in cron line ??? > > One simple way to test the many problems (none of them a samba problem): > make a simple (executable) shell script and let cron call th

Re: [Samba] smbclient doesn't work from cron

2011-04-26 Thread Helmut Hullen
Hallo, Jeronimo, Du meintest am 26.04.11: > /usr/bin/smbclient windows-server\"backup db"$ -U jelo 123456 -c > "lcd /root;put mysql-dump.sql" > But when I try to run the same command from /etc/crontab, it fails: > 00 10 * * * root/usr/bin/smbclient > windows-server\\"backup db"$

[Samba] smbclient doesn't work from cron

2011-04-26 Thread Jeronimo L. Cabral
Dear, I run this command from my Linux box in order to upload a file to a Windows machine and it works OK: /usr/bin/smbclient windows-server\"backup db"$ -U jelo 123456 -c "lcd /root;put mysql-dump.sql" But when I try to run the same command from /etc/crontab, it fails: 00 10 * * * root