Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging data from spawned processes

Status
Not open for further replies.

LilTCLer

Programmer
Nov 27, 2007
37
US
I would like to know how to log all output from separate spawned processes to separate files. For example, I am developing a program in which I need to log the execution of "main" and within main, I need to spawn two separate processes that connect to a serial console port for debug info. I don't know what to expect in the output of the spawned processes, just that I want to capture it and write it to separate files.

One process will be connected to the serial port of Module A and the second process will connect to the serial port of Module B. I can't figure out how to efficiently do this.

Any ideas are greatly appreciated.

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top