[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crontab



Le Mon  7/10/2002, Julien Gilles disait
> Erwan David <erwan@rail.eu.org> a écrit :
> 
> > Le Mon  7/10/2002, Philippe Bouige disait
> >>           la denière sous bash devrait me permettre d'updater un
> >>           fichier avec les entrees sortie du programme. Je me
> >>           pose la question de savoir si le crontab utilise le
> >>           même shell que celui de l'utilisateur ??
> >
> > Non, crontab utilise /bin/sh
>  
> Beeep ! New ball, shoot again.
> 
> $ ll /bin/sh 
> lrwxrwxrwx    1 root     root            4 2002-09-24 14:08 /bin/sh -> bash

Extrait du man de bash : If bash is invoked with the name sh, it tries
to mimic the startup behavior of historical versions of sh as closely
as possible, while conforming to the POSIX standard as well.

le comportement de bash est donc différent si on l'appelle sh

Par ailleurs ce lien est à mon avis une connerie. Ça impose de se
trimballer bash pour rien, alors qu'un petit /bin/sh aurait aussi bien
fait l'affaire.

-- 
Erwan



Reply to: