cronjob problem... any help?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    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
    <&(©¿©)&>
    • Jul 2002
    • 47882

    #2
    posting the exact command you are putting in crontab may be useful in debugging this issue....
    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

    Comment

    • alex79
      Confirmed User
      • Jun 2002
      • 996

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

      Comment

      • jerzeemedia
        Confirmed User
        • May 2004
        • 1532

        #4
        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
        Free Adult Blog Hosting
        http://www.waqn.com

        free porn
        www.mojohost.com - Best guys, best host.

        Comment

        • FuqALot
          Confirmed User
          • Dec 2001
          • 3817

          #5
          path issue.

          Comment

          Working...