Write in file

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Jessica
Posts: 8
Joined: Fri Dec 13, 2013 3:17 pm

Write in file

Post 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
Djuro
Posts: 3
Joined: Fri Oct 26, 2012 4:57 pm

Re: Write in file

Post 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.
Jessica
Posts: 8
Joined: Fri Dec 13, 2013 3:17 pm

Re: Write in file

Post 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
Post Reply