Gentoo Archives: gentoo-server

From: "Frank Nørvig" <frank.norvig@××××××××××××.com>
To: gentoo-server@l.g.o
Subject: [gentoo-server] Re: backup and crontab problem (continued)
Date: Wed, 06 Oct 2004 13:37:43
Message-Id: ck0seo$uel$1@sea.gmane.org
In Reply to: Re: [gentoo-server] backup and crontab problem by Martin Hajduch
1 Martin Hajduch wrote:
2 > try something like this to get more info about the environment in which
3 > tar is running when started from cron
4 >> $exec = `(id; whoami; env; tar -c -p
5 >> --exclude-from=/opt/backup/backup-exclude.txt -M -F
6 >> /opt/backup/changetape.pl -f /dev/nst0 /var/data ) 2>&1`;
7
8 I tried and this is what I got:
9
10 [2004-10-06 05:51:35] uid=0(root) gid=0(root)
11 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
12 root
13 SHELL=/bin/sh
14 PATH=/usr/bin:/bin
15 PWD=/root
16 HOME=/root
17 SHLVL=2
18 LOGNAME=root
19 _=/usr/bin/env
20 tar: /dev/nst0: Cannot open: Input/output error
21 tar: Error is not recoverable: exiting now
22
23
24 I agree there is a big difference from the "normal" bash:
25
26 uid=0(root) gid=0(root)
27 grupper=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
28 root
29 MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
30 INFODIR=/usr/share/info
31 HOSTNAME=xxx
32 TERM=xterm
33 SHELL=/bin/bash
34 USER=root
35 PAGER=/usr/bin/less
36 CONFIG_PROTECT_MASK=/etc/terminfo
37 MAIL=/var/mail/root
38 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3
39 GLIBC_SSP_CHECKED=1
40 INPUTRC=/etc/inputrc
41 PWD=/root
42 EDITOR=/usr/bin/vim
43 LANG=da_DK
44 PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]
45 CXX=g++
46 SHLVL=1
47 HOME=/root
48 LESS=-R
49 LOGNAME=root
50 CVS_RSH=ssh
51 LESSOPEN=|lesspipe.sh %s
52 INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info
53 CC=gcc
54 G_BROKEN_FILENAMES=1
55 _=/bin/env
56
57
58 But I can't figure out which one is triggering the problem.
59
60 - Frank

Replies

Subject Author
Re: [gentoo-server] Re: backup and crontab problem (continued) Martin Hajduch <martin.hajduch@×××××××××××.com>
Re: [gentoo-server] Re: backup and crontab problem (continued) Martin Hajduch <martin.hajduch@×××××××××××.com>