Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

12 lignes
220 B

  1. #!/bin/bash
  2. LAST_SEEN_FILE=/var/tmp/human_last_seen
  3. LAST_CHECKED_FILE=/var/tmp/human_last_checked
  4. LAST_SEEN=`stat /var/tmp/human_last_seen --format=%Y`
  5. TIME_NOW=`date +%s`
  6. AGO=$(( $TIME_NOW - $LAST_SEEN ))
  7. echo $AGO