#!/bin/bash export DISPLAY=:0 export NVMEZENITY=$(sudo nvme smart-log /dev/nvme0n1) zenity --info --text="$NVMEZENITY" --width=800 # executar com a root visudo i afegir... # [USUARI_GUI] ALL = NOPASSWD: /usr/sbin/nvme # ja ho podem posar al crontab ... # 1 11 * * 3 /home/[USUARI_GUI]/.bin_msf/checknvme1.sh