Hi,
I tried:
the original environment:
[root@nass ~]# export
declare -x CCACHE_DIR="/var/cache/ccache"
declare -x CCACHE_UMASK="002"
declare -x CVS_RSH="ssh"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="nass.vorlon.lan"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="de_DE.UTF-8"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD
declare -x
PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_ASKPASS="/usr/libexec/openssh/gnome-ssh-askpass"
declare -x TERM="xterm-color"
declare -x USER="root"
[root@nass ~]# export -n G_BROKEN_FILENAMES HISTSIZE HOME HOSTNAME INPUTRC
CCACHE_UMASK LS_COLORS LANG LESSOPEN MAIL OLDPWD PWD SHELL SHLVL
SSH_ASKPASS TERM USER LOGNAME CVS_RSH CCACHE_DIR
Then I removed the variables:
[root@nass ~]# export
declare -x
PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
run mrtg
[root@nass ~]# /usr/bin/mrtg /etc/mrtg/mrtg.cfg
and didn`t get an error message.
I readded the variable one by one, no error messages. I think this is
related to cron somehow.
Does cron anything different from bash ? Can I configure cron to use roots
environment ?
cu romal
Michal Jaegermann schrieb:
On Fri, Feb 08, 2008 at 05:47:28PM +0100, Robert M. Albrecht wrote:
crontab:
(skipped)
shell:
(skipped)
At least it is clear that environments are not the same. :-)
Needs Perl LANG or something else ?
I have no idea without going through the code but, as this is
a network application, I would be not surprised if HOSTNAME would
be used somewhere; or maybe TERM is expected? Possibly indirectly.
In any case you can set yourself a shell with the same environment
which cron is using and try to run mrtg there. If my initial guess
is correct then you should find out pretty quickly what all this
complaint is about.
Michal
--
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-test-list