[Samba] smbclient doesn't work from cron
Jeronimo L. Cabral
jelocabral at gmail.com
Tue Apr 26 07:44:46 MDT 2011
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 /usr/bin/smbclient \\\\windows-server\\"backup
db"$ -U jelo 123456 -c "lcd /root;put mysql-dump.sql"
I tell you I've restarted cron daemon and it always fails.
What's wrong in cron line ???
Really thanks
JeLo
More information about the samba
mailing list