Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12 linhas
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