[how to] start an app from terminal and collect log
asked 2015-08-06 21:08:32 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
for all non-developers that have reported a bug and need to send a log to the corresponding developer
- first enable developer mode to get the terminal application the option is in Settings\System in the Security section
- start the terminal
- type in name of application i.e.
this will start the application, the output will be shown on screen. You can make a screenshot:
;-)
to redirect the output into a file that you can collect, type instead
name_of_application >out.log 2>err.log
i.e. [nemo@jolla ~]$ harbour-webpirate > out.log 2> err.log
to redirect stdout to a file, display stderr type:
name_of_application 1>file
to redirect stderr to a file, display stdout type:
name_of_application 2>file
to redirect both to a file, display nothing type:
name_of_application 1>file 2>&1 g
when done turn quit terminal, collect the file i.e. with Filebrowser and disable developer mode again
A small hint for TOHKBD owners: You'll love the tab key. It's auto-completion! So for the example screenshots it was enough to write ha[tab]we[tab] instead of harbour-webpirate. :-)
Tried to make some screenshots for you, problem:
doesn't work. stderr is still printed to screen and stdout to err.log - out.log is empty.
Also: "to redirect stdout to a file, display stderr type" - you can safely remove the 1, so it looks like
name of application >file
Last: "name of application 1>file 2>&1 g" what exactly is the "g" for?
V10lator ( 2015-08-07 13:19:59 +0200 )editRemove the spaces after each >.
Giacomo Di Giacomo ( 2015-08-07 13:49:45 +0200 )edithttp://bfy.tw/1Bx6
chemist ( 2015-08-07 13:55:34 +0200 )editvery funny indead. as a windows user my main problem was: where the hell is the app located? was surprised to find out that path is not needed rest is anyway 1:1 to windows
pawel ( 2015-08-07 14:13:39 +0200 )edit@pawel A bit off topic but:
;)
V10lator ( 2015-08-07 15:11:28 +0200 )edit