Comment 14 for bug 1040900

Revision history for this message
Javier López (javier-lopez) wrote :

I've tested both versions of the package, precise & quantal and it works as expected:

$ cat /etc/issue
Ubuntu 12.04.1 LTS \n \l

Nov 21 01:50:00 precise syslog.info syslogd started: BusyBox v1.18.5
Nov 21 01:50:09 precise user.notice chilicuil: watch runs command repeatedly, displaying its output and errors (the first screenfull). This allows you to watch the program output change over time. By default, the program is run every 2 seconds; use -n or --interval to sp

$ apt-cache policy busybox
busybox:
  Installed: 1:1.18.5-1ubuntu4.1
  Candidate: 1:1.18.5-1ubuntu4.1
  Version table:
 *** 1:1.18.5-1ubuntu4.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     1:1.18.5-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages

$ sudo stop rsyslog

$ sudo busybox syslogd -n

$ logger "watch runs command repeatedly, displaying its output and errors (the first screenfull). This allows you to watch the program output change over time. By default, the program is run every 2 seconds; use -n or --interval to specify a different interval. Normally, this interval is interpreted as the amout of time between the completion of one run of command and the beginning of the next run. However, with the -p or --precise option, you can make watch attempt to run command every interval seconds. Try it with ntptime and notice how the fractional seconds stays (nearly) the same, as opposed to normal mode where they continuously increase."

$ vim /var/log/messages

-- With busybox ubuntu4
Nov 21 01:50:00 precise syslog.info syslogd started: BusyBox v1.18.5
Nov 21 01:50:09 precise user.notice chilicuil: watch runs command repeatedly, displaying its output and errors (the first screenfull). This allows you to watch the program output change over time. By default, the program is run every 2 seconds; use -n or --interval to sp

-- With busybox ubuntu4.1 (this patch)
Nov 21 01:45:18 precise syslog.info syslogd started: BusyBox v1.18.5
Nov 21 01:46:07 precise user.notice chilicuil: watch runs command repeatedly, displaying its output and errors (the first screenfull). This allows you to watch the program output change over time. By default, the program is run every 2 seconds; use -n or --interval to specify a different interval. Normally, this interval is interpreted as the amout of time between the completion of one run of command and the beginning of the next run. However, with the -p or --precise option, you can make watch attempt to run command ever

It doubles the capacity to hold number of characters in a line, the same behavior is for Quantal, I didn't provide the outputs for it, however they're the same (except for the versions involved), however if it's needed I'd be happy to add them.

I'm modifying the tag to verification-done

Greetings.

--------------------------
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad