On Mon, Oct 07, 2002 at 09:09:55AM +0200, Eric BERTHOMIER wrote:
> Avec la commande crontab -e, j'ai les 2 commandes suivantes :
>
> 00 01 * * * /root/bin/sauve.sh
> 00 04 * * * 'taper -U @momo +a +O -g `date [EMAIL PROTECTED] -t mabande -u'
>
> La 1�re fonctionne
> La 2nde ne fonctionne pas, (le contenu de sauve.sh est la ligne indiqu�e
> dans la seconde commande)
>
> J'ai essay� sans les ' , c'est la m�me chose...
>
> L'erreur doit �tre simple mais je ne l'ai pas trouv�e pour l'instant ...
Ca m'est deja arrive, je m'etais bien pris la tete.
En fait, c'est le % qui a une signification speciale dans une crontab:
Only the first line (up to a `%' or end of line) of the com-
mand field is executed by the shell. Other lines are made
available to the command as standard input. Any line
begin-
ning with a `#' is a comment and will be ignored.
The file should not contain blank lines.
Faut donc echapper tes %:
00 04 * * * 'taper -U @momo +a +O -g `date [EMAIL PROTECTED] -t mabande -u'
--
Manu
// Je n'ai pas souvent assist� � des course de spermatozo�des,
// mais j'ai donn� beaucoup de d�parts.
// Olivier de Kersauzon