I would like to run this script everytime computer starts up. I'm using crontab/gnome schduler:
#!/bin/bash
while true
do
fileName=$(inotifywait -e create /home/posto-11v/Documents/Processo | sed -r 's/^.*CREATE(,ISDIR)*\s+(.*)$/\2/g')
zenity --warning --text="$fileName"
done
this is the crontab -e file:
@reboot sh /home/posto-11v/Documents/personaproject/Programa/scripts/recebe_processo # JOB_ID_9
I've changed script permissions using chmod +x.
I'm not able to run it automatically, only by hand. what i'm doing wrong? Can the script start whithout starting the terminal?
thks in advance!