Hot answers tagged


% has a special meaning in cronjobs – it means the text afterwards is given as stdin to the command before it. To use a literal percent sign, either try \escaping it or just move everything into an external script and call that from crontab. (IMHO, when it nests $(…) more than twice, it's a sure sign it should be extracted into a script.) Note that you can ...


If the file exists, and the permissions are ok, then a cause can be that the file is open when you try to compress it. In order to avoid that, you can add the following line to your /etc/logrotate.conf: delaycompress

Only top voted, non community-wiki answers of a minimum length are eligible