Re: Testing for STDIN

2004-02-25 Thread John W. Krahn
Timothy Donahue wrote: > > I have a program that I am writing that I need to accept input from > either STDIN (for file redirections or pipes) or from the command-line. > The program manipulates email addresses for our mail servers, so I > should have the option to do either 'email_add > [EMAIL PR

Re: Testing for STDIN

2004-02-25 Thread Steve Grazzini
Timothy Donahue wrote: I have a program that I am writing that I need to accept input from either STDIN (for file redirections or pipes) or from the command-line. The program manipulates email addresses for our mail servers, so I should have the option to do either 'email_add [EMAIL PROTECTED]' or

RE: Testing for STDIN

2004-02-25 Thread Bob Showalter
Timothy Donahue wrote: > I have a program that I am writing that I need to accept input from > either STDIN (for file redirections or pipes) or from the > command-line. The program manipulates email addresses for our mail > servers, so I should have the option to do either 'email_add > [EMAIL PROTE