Re: [arch-general] pacman.log has no timezone information in timestamp

2019-03-01 Thread Juha Kankare via arch-general
On 02/03/2019 02:23, ProgAndy wrote: > Am 02.03.19 um 01:12 schrieb mpan: >>> I just used the /var/log/pacman.log for the first time to give me the >>> last date-time I did a system upgrade ('starting full system upgrade' in >>> the log). There is no time-zone info in the time-stamp. It's also not

Re: [arch-general] pacman.log has no timezone information in timestamp

2019-03-01 Thread ProgAndy
Am 02.03.19 um 01:12 schrieb mpan: >> I just used the /var/log/pacman.log for the first time to give me the >> last date-time I did a system upgrade ('starting full system upgrade' in >> the log). There is no time-zone info in the time-stamp. It's also not >> UTC. Does anyone know if this is by des

Re: [arch-general] pacman.log has no timezone information in timestamp

2019-03-01 Thread mpan
> I just used the /var/log/pacman.log for the first time to give me the > last date-time I did a system upgrade ('starting full system upgrade' in > the log). There is no time-zone info in the time-stamp. It's also not > UTC. Does anyone know if this is by design or a bug? `pacman` uses local tim

Re: [arch-general] pacman.log has no timezone information in timestamp

2019-03-01 Thread Lone_Wolf
On 01-03-2019 23:46, Florian Wehner wrote: Hi! I just used the /var/log/pacman.log for the first time to give me the last date-time I did a system upgrade ('starting full system upgrade' in the log). There is no time-zone info in the time-stamp. It's also not UTC. Does anyone know if this i

[arch-general] pacman.log has no timezone information in timestamp

2019-03-01 Thread Florian Wehner
Hi! I just used the /var/log/pacman.log for the first time to give me the last date-time I did a system upgrade ('starting full system upgrade' in the log). There is no time-zone info in the time-stamp. It's also not UTC. Does anyone know if this is by design or a bug? Example Output: [2019-

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 21:49, Chris Billington () escribió: > > The output of the script command can contain all sorts of control characters > and ANSI escape sequences since it is exactly what is being written to the > terminal. > > Incidentally, I have written a Python function for cleaning

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
The output of the script command can contain all sorts of control characters and ANSI escape sequences since it is exactly what is being written to the terminal. Incidentally, I have written a Python function for cleaning up such output (solely used to document my Arch linux installation): https:

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 21:32, Chris Billington () escribió: > > The 'flush' option could help with that: > [bilbo:~]$ script -h | grep flush > -f, --flush run flush after each write > > So, something like > > script -f -c '/usr/local/bin/cccam -d' mylogfile.log > > I would wa

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
The 'flush' option could help with that: [bilbo:~]$ script -h | grep flush -f, --flush run flush after each write So, something like script -f -c '/usr/local/bin/cccam -d' mylogfile.log I would want to get to the bottom of why this binary does not play well with normal tools,

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 20:08, Chris Billington () escribió: > > This is pretty strange. > > As for the script command, it can be passed the command to run, but I am > guessing it will have the same symptoms as with 'unbuffer': > > [bilbo:~]$ script -c 'echo hello' mylogfile.log > Script starte

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
This is pretty strange. As for the script command, it can be passed the command to run, but I am guessing it will have the same symptoms as with 'unbuffer': [bilbo:~]$ script -c 'echo hello' mylogfile.log Script started, file is mylogfile.log hello Script done, file is mylogfile.log [bilbo:~]$ ca

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 19:30, Ralph Corderoy () escribió: > > Hi Maykel, > > > > command &> out > > > > Not works... I probe all combinations: > > > > > file redirects stdout to file > > 1> file redirects stdout to file > > 2> file redirects stderr to file > > &> file redirects stdout and stder

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Ralph Corderoy
Hi Maykel, > > command &> out > > Not works... I probe all combinations: > > > file redirects stdout to file > 1> file redirects stdout to file > 2> file redirects stderr to file > &> file redirects stdout and stderr to file Can you show us one complete command with `&>' in case there's something

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 19:15, Chris Billington () escribió: > > Perplexing! How about the 'script' command? > > On Fri., 1 Mar. 2019, 13:13 Maykel Franco, wrote: >> >> El vie., 1 mar. 2019 a las 19:09, Chris Billington >> () escribió: >> > >> > The program could also explicitly be modifying it

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
Perplexing! How about the 'script' command? On Fri., 1 Mar. 2019, 13:13 Maykel Franco, wrote: > El vie., 1 mar. 2019 a las 19:09, Chris Billington > () escribió: > > > > The program could also explicitly be modifying its behaviour based on > whether stdout is a tty or not. You can trick it into

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 19:09, Chris Billington () escribió: > > The program could also explicitly be modifying its behaviour based on whether > stdout is a tty or not. You can trick it into thinking its stdout is a tty > with the program 'unbuffer'. For example: > > [bilbo:~]$ python -c 'impo

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
The program could also explicitly be modifying its behaviour based on whether stdout is a tty or not. You can trick it into thinking its stdout is a tty with the program 'unbuffer'. For example: [bilbo:~]$ python -c 'import sys; print(sys.stdout.isatty())' | cat False [bilbo:~]$ unbuffer python -c

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
El vie., 1 mar. 2019 a las 19:01, Chris Billington () escribió: > > Perhaps the program writes its log to stderr, and not to stdout? > > If so, you can redirect both stdout and stderr to file with: > > command &> out > > > > On Fri, Mar 1, 2019 at 12:47 PM Maykel Franco via arch-general > wrote:

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Ralph Corderoy
Hi Maykel, > I playing with cccam for a proyect with decoder and I like stdout > console log to specific log but not work... > > I try all: > > >> /var/log/test.log Have you seen https://wiki.archlinux.org/index.php/Command-line_shell#Input_and_output and the links it provides? -- Cheers, R

Re: [arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Chris Billington via arch-general
Perhaps the program writes its log to stderr, and not to stdout? If so, you can redirect both stdout and stderr to file with: command &> out On Fri, Mar 1, 2019 at 12:47 PM Maykel Franco via arch-general < arch-general@archlinux.org> wrote: > HI, I playing with cccam for a proyect with decode

[arch-general] Impossible redirect console buffer to log

2019-03-01 Thread Maykel Franco via arch-general
HI, I playing with cccam for a proyect with decoder and I like stdout console log to specific log but not work... I try all: >> /var/log/test.log tee -a /var/log/test.log strace -p pid The command is: /usr/local/bin/CCcam -d 18:43:15.717 CCcam: