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

2009-04-17 Thread Chris Rees
2009/4/16 Tobias Rehbein : > s/Good/Could/ > > > -- Forwarded message -- > From: Tobias Rehbein > To: Mel Flynn > Date: Thu, 16 Apr 2009 21:03:52 +0200 > Subject: Re: [OT] C programming question: reopen stdin > Am Tue, Apr 14, 2009 at 09:07:26PM +02

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

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

2009-04-16 Thread Tobias Rehbein
s/Good/Could/ --- Begin Message --- 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 u

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 w

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,

[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 du

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 Per

Re: C programming question

2009-04-08 Thread Valentin Bud
On Wed, Apr 8, 2009 at 12:52 PM, Konrad Heuer 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

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-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 t

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 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 lette

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 s