Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #180927

Re: Useable guide to first invocation of mariadb - where?

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Useable guide to first invocation of mariadb - where?
Date 2017-05-11 15:30 +0200
Message-ID <tFWki-6O0-15@gated-at.bofh.it> (permalink)
References <tESsp-5wT-11@gated-at.bofh.it> <tEUaT-6rk-21@gated-at.bofh.it> <tEW2Z-7Eq-7@gated-at.bofh.it> <tFVxT-6it-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, May 11, 2017 at 07:34:18AM -0500, Richard Owlett wrote:

[...]

No clue about MySQL, sorry.

> Somewhere I've notes directing output of a command to console and a
> file simultaneously. Then I'll have a record of what does and
> doesn't happen. Tried the 'script' command - output had too may
> non-ASCII characters in output file.

This is because script tries to keep everything, ANSI colouring
and cursor movements included. If you just want to "see" what was
going on, you may issue "soelim typescript" or similar. Or pass it
through "less -R", the -R option meaning "go ahead and *interpret*
the escape sequences, I know what I'm doing". Details in the man
pages.

If, OTOH, you want a plain text to store somewhere, you have to
filter out the escape sequences, which is not as trivial as it
sounds (how do you represent an interactive man page viewing as
a "text"?). I'm sure there are tools to help you in that, but
I can't offer any off the top of my head.

If you want to get text in the first place, the command "tee"
might be what you want (but then, if you're doing fancy things,
it might be worse).

I konw it's counterintuitive at first, but once you realize that
"screen" as you see it is somehow a "richer" language than just
a stream of text, the problem becomes clear: when you reduce
"screen" to a stream of text, that's interpretation, and what
you leave out and how becomes a matter of judgement.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlkUZfsACgkQBcgs9XrR2kYtRwCaAmcQUL76j1OAAeH3RR8X3ewK
OkcAn3f29HTtvKqkJbsHCS77LjPFglkT
=DAus
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Useable guide to first invocation of mariadb - where? Richard Owlett <rowlett@cloud85.net> - 2017-05-08 17:10 +0200
  Re: Useable guide to first invocation of mariadb - where? Joe <joe@jretrading.com> - 2017-05-08 19:00 +0200
    Re: Useable guide to first invocation of mariadb - where? Richard Owlett <rowlett@cloud85.net> - 2017-05-08 21:00 +0200
      Re: Useable guide to first invocation of mariadb - where? Richard Owlett <rowlett@cloud85.net> - 2017-05-11 14:40 +0200
        Re: Useable guide to first invocation of mariadb - where? <tomas@tuxteam.de> - 2017-05-11 15:30 +0200
          Re: Useable guide to first invocation of mariadb - where? Richard Owlett <rowlett@cloud85.net> - 2017-05-11 17:00 +0200
  Re: Useable guide to first invocation of mariadb - where? Ric Moore <wayward4now@gmail.com> - 2017-05-08 19:50 +0200
    Re: Useable guide to first invocation of mariadb - where? Richard Owlett <rowlett@cloud85.net> - 2017-05-09 14:40 +0200

csiph-web