Runing perl Script usando root cron me disse "acesso negado"

2

Isso vem de aqui

Agora ele é executado, mas quando eu o executo usando o crontab da raiz, ele me disse:

*tail: /var/log/backupeitor.log: file truncated
/bin/sh: /home/backup/scripts/backupeitor.pl: Permission denied*

Permissões para o arquivo:

*srv156:/home/backup/scripts$ ls -alrt
insgesamt 28
drwxrwxrwx 2 root root 4096 19. Sep 13:23 off
-rwxrwxrwx 1 root root 1274 24. Okt 15:16 backup_mysql.sh
-rwxrwxrwx 1 root root  302 24. Okt 15:16 backup_postgres.sh
drwxrwxrwx 5 root root 4096 18. Dez 14:55 ..
drwxrwxrwx 3 root root 4096 20. Dez 09:48 .
-rwxrwxrwx 1 root root 3393 20. Dez 22:49 backupeitor.pl
srv156:/home/backup/scripts$* 

Alguma ideia?

    
por PsySkeletor 20.12.2012 / 23:14

2 respostas

2

Por favor, verifique a minha resposta no seu outro post, irá corrigir os dois problemas.

    
por 20.12.2012 / 23:23
1

Feito.

Shebang Changed, caminho para / usr / bin / perl mudou como @ John-Siu diz que funcionou!

Obrigado!

    
por 21.12.2012 / 01:00