Re: [tobias.rehb...@web.de: Re: [OT] C programming question: reopen stdin]

2009-04-17 Thread Chris Rees
2009/4/16 Tobias Rehbein tobias.rehb...@web.de: s/Good/Could/ -- Forwarded message -- From: Tobias Rehbein tobias.rehb...@web.de To: Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net Date: Thu, 16 Apr 2009 21:03:52 +0200 Subject: Re: [OT] C programming question

Re: [OT] C programming question: reopen stdin

2009-04-16 Thread Tobias Rehbein
Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin. After reading the user should be able to interact with the

[tobias.rehb...@web.de: Re: [OT] C programming question: reopen stdin]

2009-04-16 Thread Tobias Rehbein
s/Good/Could/ ---BeginMessage--- Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin. After reading the user

Re: [OT] C programming question: reopen stdin

2009-04-16 Thread Mel Flynn
On Thursday 16 April 2009 21:03:52 Tobias Rehbein wrote: Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn: On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin.

[OT] C programming question: reopen stdin

2009-04-14 Thread Tobias Rehbein
Hi all. I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin. After reading the user should be able to interact with the program via stdin. This means I have to reopen stdin but I don't know how to do this. I tried to solve this using

Re: [OT] C programming question: reopen stdin

2009-04-14 Thread Mel Flynn
On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote: I'm having a little trouble solving a specific problem in C. I want to write a filter which reads data from stdin. After reading the user should be able to interact with the program via stdin. Just open(2) /dev/tty. If tty is invalid,

Re: C programming question

2009-04-08 Thread Frank Shute
On Tue, Apr 07, 2009 at 11:41:54AM +0200, Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by

Re: C programming question

2009-04-08 Thread Valentin Bud
On Wed, Apr 8, 2009 at 12:52 PM, Konrad Heuer kheu...@gwdg.de wrote: On Wed, 8 Apr 2009, Frank Shute wrote: On Tue, Apr 07, 2009 at 11:41:54AM +0200, Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the

Re: C programming question

2009-04-08 Thread William Gordon Rutherdale
Valentin Bud wrote: Thanks everybody for the heads up. I don't know (yet) which path i am going to take. I know a little bit of perl so i guess i'll start reading on how can i accomplish my goal with perl. thanks, v I've been programming for a very long time, and I can tell you that both

C programming question

2009-04-07 Thread Valentin Bud
Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by sending different letters (eg. A/W) to start/stop one of the plugs and another

Re: C programming question

2009-04-07 Thread John Almberg
On Apr 7, 2009, at 5:41 AM, Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by sending different

Re: C programming question

2009-04-07 Thread Oliver Fromme
Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by sending different letters (eg. A/W) to

Re: C programming question

2009-04-07 Thread Chris Whitehouse
Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by sending different letters (eg. A/W) to start/stop one of