GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   cronjob problem... any help? (https://gfy.com/showthread.php?t=696881)

alex79 01-18-2007 01:46 AM

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?

woj 01-18-2007 03:18 AM

posting the exact command you are putting in crontab may be useful in debugging this issue....

alex79 01-18-2007 03:56 AM

/bin/sh clamscan /home/file.zip > /home/file_scanresult.txt

jerzeemedia 01-18-2007 06:41 AM

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

FuqALot 01-18-2007 06:43 AM

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