devslashneil has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if there is any way for me to run this program from within my perl script, while still proving that if statement true and then send the program data to it's stdin.#include <stdio.h> int main(int ac, char** av) { if (isatty(fileno(stdout))) printf("Is a tty!\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Valid tty problem
by BUU (Prior) on May 05, 2004 at 03:15 UTC | |
by devslashneil (Friar) on May 05, 2004 at 03:36 UTC | |
|
Re: Valid tty problem
by chip (Curate) on May 05, 2004 at 03:52 UTC | |
by tilly (Archbishop) on May 05, 2004 at 05:35 UTC | |
by chip (Curate) on May 05, 2004 at 12:59 UTC |