← Back to team overview

ubuntu-phone team mailing list archive

Re: BQ E4.5: terminal-app && logging

 

El día Monday, December 05, 2016 a las 10:51:02AM +0000, Andrew Penkrat escribió:

> 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.

Hi Andrew,

Thanks for the feedback and idea. Meanwhile I came up with:

phablet@ubuntu-phablet-bq:~$ script tg.log
Script started, file is tg.log
phablet@ubuntu-phablet-bq:~$ ./tg.sh
...
> 
> quit
halt
phablet@ubuntu-phablet-bq:~$ exit
Script done, file is tg.log
phablet@ubuntu-phablet-bq:~$ ls -l tg.log
-rw-rw-r-- 1 phablet phablet 4155 Dec  5 12:06 tg.log


	matthias

-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045


References