Package: incron
Version: 0.5.7-1
Severity: important
Attaching usage log, for reference.
# empting "log"
and...@terminus:~$ > /tmp/ic.log
# verifying incrontab
and...@terminus:~$ incrontab -l
/home/andres/maps IN_MODIFY /usr/bin/make -C $@ > /tmp/ic.log 2>&1
# modifying file
and...@terminus:~$ cat > maps/all.dot <<EOF
> digraph
> {
> nod
> }
>
# validating date
and...@terminus:~$ date
Tue Jun 1 10:01:39 COT 2010
# verifying syslog, the commands is "executed"
and...@terminus:~$ su -c "tail -5 /var/log/syslog"
Password:
Jun 1 10:01:33 terminus incrond[5924]: (andres) CMD (/usr/bin/make -C /home/and
res/maps > /tmp/ic.log 2>&1)
Jun 1 10:01:33 terminus incrond[5924]: (andres) CMD (/usr/bin/make -C /home/and
res/maps > /tmp/ic.log 2>&1)
# verifying Makefile
and...@terminus:~$ cat maps/Makefile
all: all.png
all.png: all.dot
dot -Tpng $< > $@
# log is empty
and...@terminus:~$ cat /tmp/ic.log
# outfile is outdated
and...@terminus:~$ ls -l maps/all.png
-rw-r--r-- 1 andres andres 12457 2010-06-01 09:58 maps/all.png
# the command works
and...@terminus:~$ /usr/bin/make -C /home/andres/maps > /tmp/ic.log 2>&1
# outfile is updated
and...@terminus:~$ ls -l maps/all.png
-rw-r--r-- 1 andres andres 133 2010-06-01 10:04 maps/all.png
# "log" is logging
and...@terminus:~$ cat /tmp/ic.log
make: Entering directory `/home/andres/maps'
dot -Tpng all.dot > all.png
make: Leaving directory `/home/andres/maps'
and...@terminus:~$ date
Tue Jun 1 10:05:11 COT 2010
# weird
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages incron depends on:
ii adduser 3.110 add and remove users and groups
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
incron recommends no packages.
incron suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]