Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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