Page 1 of 1

Write in file

Posted: Tue Dec 31, 2013 1:51 pm
by Jessica
Hi,

I am using the screen on Ubuntu to get a shell to STM32. I was wondering is it possible to write what it displays in the shell to a text file ?
Any suggestion for opening and writing to a file instead of chprintf () ?

Thanks,
Jessi

Re: Write in file

Posted: Tue Dec 31, 2013 3:28 pm
by Djuro
Start screen with -L parameter and you will take all comuninaction in log file ( screenlog.0 ).
Example: screen -L /dev/ttyACM0
man screen - for more information.

Re: Write in file

Posted: Tue Dec 31, 2013 5:12 pm
by Jessica
Djuro wrote:Start screen with -L parameter and you will take all comuninaction in log file ( screenlog.0 ).
Example: screen -L /dev/ttyACM0
man screen - for more information.


Thanks.

Jessi