[Samba] smbclient doesn't work from cron
Bob Miller
bob at computerisms.ca
Tue Apr 26 10:09:05 MDT 2011
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 this shell
> script.
I encountered a couple years ago a problem with a cron command, which I
ended up tracing to cron and the shell (debian system, cannot remember
exactly if it was a different shell or different handling of the shell
that cron uses).
My research led me to a new habit/method of creating cronjobs, one that
forces cron to execute the commands in a bash shell just like you do
from the command line. As Helmut suggests, put your commands in a file,
and then use the bash command to call the script:
0 10 * * * bash /path/to/file/with/commands
Bob Miller
334-7117/660-5315
http://computerisms.ca
bob at computerisms.ca
Network, Internet, Server,
and Open Source Solutions
More information about the samba
mailing list