Re: To redirect cmd.exe to COM1
From: Brian (brian_at_nospam.com)
Date: 07/19/04
- Next message: Rui Tang: "Where to look up the mapping relationship between SYSGEN_FOO and CE_MODULES_FOO"
- Previous message: Chris: "Re: CE 4.2 Hive-based registry"
- In reply to: joseph: "To redirect cmd.exe to COM1"
- Next in thread: John Spaith [MS]: "Re: To redirect cmd.exe to COM1"
- Reply: John Spaith [MS]: "Re: To redirect cmd.exe to COM1"
- Reply: K. S. Huang: "Re: To redirect cmd.exe to COM1"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 09:48:13 -0400
joseph wrote:
> Hi folks,
> Do anyone of you know how to redirect the cmd.exe output to serial
> port(COM1)?
> Mine is a headless platform and I have to do it.I went through the
> documentation and inserted the following registry entries in
>...
Raphael is right about the baudrate. But beyond that, you may run into
another problem: you can run cmd.exe and get it's io to the serial port,
but child processes (say, running ipfonfig inside that shell) cause the
console driver to try to open the serial port a second time, which
fails, so you never see their output. The best you can do is either pipe
output to a file and then 'type' the file, or abandon the built-in
serial console and write your own, actually capturing stdin, stdout, and
stderr of the cmd.exe process and piping it to the serial port yourself.
Or maybe modify the serial driver.
(Oh, and it doesn't pass things like CTL-C, so take care not to run any
processes that don't exit on their own!)
- Brian Bender
- Next message: Rui Tang: "Where to look up the mapping relationship between SYSGEN_FOO and CE_MODULES_FOO"
- Previous message: Chris: "Re: CE 4.2 Hive-based registry"
- In reply to: joseph: "To redirect cmd.exe to COM1"
- Next in thread: John Spaith [MS]: "Re: To redirect cmd.exe to COM1"
- Reply: John Spaith [MS]: "Re: To redirect cmd.exe to COM1"
- Reply: K. S. Huang: "Re: To redirect cmd.exe to COM1"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|