rar produces 0-byte file in crontab
I have a .sh script that does a mysqldump of a database, uses RAR to compress it, and then deletes the .sql file.
It works perfectly when I run it manually from the command line, but when it runs in a cron the .rar file is always 0 bytes. I tried having it suppress all output but it didn't make a difference. Here is the file: Code:
#!/bin/sh What can I do to make the cron version work? Thanks! |
probably you need to use mysqldump with full path. crontab has a special environment.
|
Thank you, that fixed it. :)
|
All times are GMT -5. The time now is 08:48 PM. |