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, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to