Re: smartctl

Top Page

Reply to this message
Author: nt.guilde
Date:  
To: anne.guilde@free.fr
CC: guilde
Subject: Re: smartctl
> end="$(echo "$a" | sed '/Test will complete after /!d; s///')"
> sleep $(( `date +%s -d "end"` - `date +%s` + 60 ))
> ...
> + end=Thu May 31 10:39:14 2018
> + date +%s -d end
> ...
> Le script n'est pas tout à fait au point


sleep $(( `date +%s -d "$end"` - `date +%s` + 60 ))
                        ^


-Nicolas T.