The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple shell script

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

  1. jarecki74

    jarecki74 Member

    Joined:
    Oct 10, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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:
    190
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    why not just use the default maldet cron that takes care of all of that for you?
     
Loading...
Similar Threads - Simple shell script
  1. edlemmers
    Replies:
    4
    Views:
    501

Share This Page