Ioannis Vranos <[log in to unmask]> ha scritto:
> This doesn't seem to work on my desktop system:
>
> [root@localhost ~]# while true; do smartctl -a /dev/hdc |grep
> Load_Cycle_Count; sleep 120; done;
>
> [root@localhost ~]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 287G 34G 239G 13% /
> /dev/hdc1 99M 28M 67M 30% /boot
> tmpfs 506M 0 506M 0% /dev/shm
> [root@localhost ~]#
>
>
> I left it more than 120 seconds.
You must use `sh` for it to work as it is, `bash` won't do.
Regards,
Andrea