Einzelnen Beitrag anzeigen

Benutzerbild von Valle
Valle

Registriert seit: 26. Dez 2005
Ort: Karlsruhe
1.223 Beiträge
 
#2

AW: ShellScript Ubuntu If Condition

  Alt 10. Jul 2016, 11:22
Code:
if [[ $(find $log_path -cmin +10) ]]; then
    echo "Sende E-Mail"
fi
Die Sprache heißt übrigens Bash, nicht ShellScript.
Valentin Voigt
BOFH excuse #423: „It's not RFC-822 compliant.“
Mein total langweiliger Blog
  Mit Zitat antworten Zitat