[ubuntu-it] Digest di ubuntu-it, Volume 73, Numero 35crontab -e

Piviul piviul a gmail.com
Ven 12 Nov 2010 09:56:13 GMT


Anzitutto ti prego di non rompere i thread:
http://wiki.ubuntu-it.org/Listiquette#head-4793d4ee044f53a933ad7c6bb3b4e462eda0d041

Gipi scrisse in data 12/11/2010 09:35:
> gianpaolo a gianpaolo-laptop:~$ sudo ls -la /var/spool/cron/crontabs/
> [sudo] password for gianpaolo: 
> totale 12
> drwx-wx--T 2 root      crontab 4096 2010-11-11 11:02 .
> drwxr-xr-x 5 root      root    4096 2010-08-16 11:39 ..
> -rw------- 1 gianpaolo crontab  175 2010-11-11 11:02 gianpaolo
>   
...non sembra essere un problema di permessi.

Controlliamo che non sia un problema relativo all'editor. Dal man di
crontab leggo:
> The  -e  option is used to edit the current crontab using the editor
> specified by the VISUAL or EDITOR environment variables.  After you
> exit from
> the editor, the modified crontab will be installed automatically. If
> neither of the environment variables is  defined,  then  the  default 
> editor
> /usr/bin/editor is used.
Hai controllato che la variabile d'ambiente VISUAL e EDITOR non siano
settate? Se non sono settate /usr/bin/editor è un link simbolico di
/etc/alternatives/editor? Infine /etc/alternatives/editor è un link
simbolico a /bin/nano?

Come workaround ti consiglio di andare a scrivere direttamente in
/etc/crontab oppure di inserire il tuo file di cron dentro /etc/cron.d
oppure andare a scrivere direttamente in /var/spool/cron/crontabs/gianpaolo

Di più non so.

Ciao

Piviul



Maggiori informazioni sulla lista ubuntu-it