Marc Balmer wrote: > * Bruce Bauer wrote: >> Problem: >> OpenBSD 4.2 on i386 >> Serial port /dev/cua00 connected to the console port on a firewall. >> I need to catch all text output from the serial port to a file. >> The process doing this must survive a loss of network. >> The box is running headless. > > I could suggest you run cu in a screen session. I have used > > cu ... | tee logfile > > in the past, but there are possibly more elegant solutions
Not sure it is more elegant, but I mention it just because I was happy to find out about it: script(1). It's in base. Nick.