jarecki74

Active Member
Oct 10, 2010
33
1
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