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