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

Re: Probleme de tache CRON



> On Tuesday 11 April 2006 19:33, Nicolas MAROT wrote:
> > je ne vois quelle peut être la différence à l'exécution d'iun script en
> > mode commande et en tache cron ...
>
> L'environnement est different. Fait la commande 'env|sort' en mode commande puis
> en cron et compare les deux;
>
> A+, JD.
Hello

En effet je vois que les environnement sont différents :
En cron j'ai :
	HOME=/root
	LANG=fr_FR@euro
	LANGUAGE=fr_FR:fr:en_GB:en
	LOGNAME=root
	PATH=/usr/bin:/bin
	PWD=/root
	SHELL=/bin/sh
	SHLVL=2
	_=/usr/bin/env
Et en console j'ai :
	HOME=/root
	LANG=fr_FR@euro
	LANGUAGE=fr_FR:fr:en_GB:en
	LOGNAME=root
	LS_OPTIONS=--color=auto
	MAIL=/var/mail/root
	PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
	PWD=/root
	SHELL=/bin/bash
	SHLVL=2
	SSH_CLIENT=XXX.XXX.XXX.XXX 2723 22
	SSH_CONNECTION=XXX.XXX.XXX.XXX 2723 YYY.YYY.YYY.YYY 22
	SSH_TTY=/dev/pts/0
	TERM=xterm
	USER=root
	_=/usr/bin/env

J'ai tenté de passé dans mon script le PATH complet :
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

Mais toujours la même erreur ... je vois pas trop quelle variable global pourrait m'aider ... z'avez une idée ?

Merci ;-)
Nico



Reply to: