ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #22956
Re: BQ E4.5: terminal-app && logging
Hi Matthias,
If you need to log input/output of specific command, you can use tee.
E.g.
telegram-cli | tee log.txt
or
telegram-cli 2>& | tee log.txt
if you also need stderr output.
Cheers,
Andrew
On Mon, 5 Dec 2016 at 10:49 Matthias Apitz <guru@xxxxxxxxxxx> wrote:
>
> Hello,
>
> Is there some magic way to let the terminal-app log all in/out lines to
> a file? I have had a look with strings into the binary, but the 'usage'
> part does not show any related:
>
> $ strings
> /opt/
> click.ubuntu.com/com.ubuntu.terminal/0.7.198/lib/arm-linux-gnueabihf/bin/terminal
> ...
> usage:
> [-p|--phone] [--workdir <dir>] [-t|--tablet] [-h|--help] [-I <path>]
> -p|--phone If running on Desktop, start in a phone sized window.
> -t|--tablet If running on Desktop, start in a tablet sized window.
> --forceAuth <true|false> Force authentication on or off.
> -h|--help Print this help.
> -I <path> Give a path for an additional QML import directory.
> May be used multiple times.
> -q <qmlfile> Give an alternative location for the main qml file.
> --workdir <dir> Change working directory to 'dir'
>
> The background of my question is the logging of the telegram-cli chats
> into some local file.
>
> Thx
>
> matthias
> --
> Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/ ☎
> +49-176-38902045 <+49%20176%2038902045>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References