Skip to main content
deleted 5 characters in body
Source Link
Zombo
  • 1
  • 7
  • 47
  • 65

This should work

if find /var/log/crashes -name 'app-\*\.log' -mmin -5 | grep -q .read then service myapp restart fi 

This should work

if find /var/log/crashes -name 'app-\*\.log' -mmin -5 | grep -q . then service myapp restart fi 

This should work

if find /var/log/crashes -name 'app-\*\.log' -mmin -5 | read then service myapp restart fi 
Source Link
Zombo
  • 1
  • 7
  • 47
  • 65

This should work

if find /var/log/crashes -name 'app-\*\.log' -mmin -5 | grep -q . then service myapp restart fi