Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Simple shell script

Discussion in 'cPanel Developers' started by jarecki74, Oct 17, 2013.

  1. jarecki74

    jarecki74 Active Member

    Joined:
    Oct 10, 2010
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    58
    can anyone help me create a simple shell script

    i have in the cron command 1 5 ***
    Code:
    find / usr / local / maldetect / sess /-name "clean *"-type f-mtime -1 | xargs grep "/ home" | mail-s "MALWARE report"
      example @ email
    but this command sent email

    even when grep "/ home" is null

    how sent

    email only when grep "/ home" is not null
     
  2. MACscr

    MACscr Well-Known Member

    Joined:
    Sep 30, 2003
    Messages:
    193
    Likes Received:
    1
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    why not just use the default maldet cron that takes care of all of that for you?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice