![]() |
cronjob problem... any help?
i've setuped a cronjob to scan my server automatically with clamav and write the results in a file
the cronjob is executed under root user the problem is: when i login to webmin and run the job from webmin with "Run Now" button everything works fine and i get the results writed in the results file, but when the job is executed automatically executed at a selected time the result file is empty anybody know where can be the problem? |
posting the exact command you are putting in crontab may be useful in debugging this issue....
|
/bin/sh clamscan /home/file.zip > /home/file_scanresult.txt
|
Try using the full path to "clamscan" and perhaps twisting it like this:
/bin/sh /path/to/clamscan /home/file.zip 2>&1 > /home/file_scanresult.txt Let me know if that helps. Regards, JM |
path issue.
|
All times are GMT -7. The time now is 10:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123