C'è un altro modo per usare la console che dici? Perché sto usando VNC per accedere lubuntu... Comunque ho provato a mettere nello script:
e ho eseguito lo script da "sudo crontab -e". Nel file di log ho:
- - - Updated - - -
Mettendo il crontab senza il sudo, nel log ottengo: Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address
Codice:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bluetooth-sendto --device=xx:xx:xx:xx:xx:xx /home/user/send.txt
Codice:
/home/user/Desktop/bt.sh: line 2: 3981 Hangup pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bluetooth-sendto --device=xx:xx:xx:xx:xx:xx /home/user/send.txt
- - - Updated - - -
Mettendo il crontab senza il sudo, nel log ottengo: Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address
Ultima modifica: