Em 14 de dezembro de 2010 15:41, Leonardo Carneiro
<chesterman86@gmail.com> escreveu:
> ...Leonardo,
>
>> 2 - Remova a a extensão do arquivo (.sh) neste caso. Oobserve que
>> nenhum arquivo executado pelo cron possui extensão.
>
> Esta info não procede. O arquivo, sendo executável, irá executar,
> independente de extensão. Apenas para diferenciar dos demais, eu uso a
> extensão .cron nos meus scripts.
>
Segue parte do manual do cron (8) onde afirma exatamente isto que eu disse:
[...]Files must conform to the same naming convention as used by run-
parts(8): they must consist solely of upper- and lower-case
letters, digits, underscores, and hyphens. If the
-l option is specified, then they must conform to the LSB
namespace specification, exactly as in the --lsb-
sysinit option in run-parts.
Agora veja o que o manual run-parts (8) afirma e porque ele foi citado:
If the --lsbsysinit option is not given then the names must consist
entirely of upper and lower case letters, digits, underscores, and
hyphens.
If the --lsbsysinit option is given, then the names must not end in
.dpkg-old or .dpkg-dist and must belong to one or more of the follow-
ing namespaces: the LANANA-assigned namespace (^[a-z0-9]+$); the LSB
hierarchical and reserved namespaces (^_?([a-z0-9_.]+-)+[a-z0-9]+$);
and the Debian cron script namespace (^[a-z0-9][a-z0-9-]*$).
Perceba então que para o run-parts e/ou cron aceitar nomes com "." a
opção -l (no cron) ou a apção --lsbsysinit (no run-parts) deverá ser
informada explicitamente, o que deverá ser feito em /etc/default/cron
--
Welington Rodrigues Braga
--------------
Web: http://www.welrbraga.eti.br
MSN: welrbraga[*]msn·com
Gtalk: welrbraga[*]gmail·com
Yahoo / Skype: welrbraga
PGP Key: 0x6C7654EB
Linux User #253605
"Em tudo somos atribulados, porém não angustiados; perplexos, porém
não desanimados; perseguidos, porém não desamparados; abatidos, porém
não destruídos;" - 2Co 4:8,9
--
To UNSUBSCRIBE, email to debian-user-portuguese-REQUEST@lists.debian.orgArchive: http://lists.debian.org/AANLkTitJmWSftDYog8c-Hwe+hSa-G_nRL7jm8pSX9T5@mail.gmail.com
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org