Mukunda has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I've a sample c program in one windows sytem.
main() { int x,y; printf("Please enter 1st number : "): scanf("%d", &x); printf("Please enter 2nd number : "): scanf("%d", &y); printf("sum is %d", (x+y)); }
I want to write a perl program on second system that executes the c program on the 1st windows system. Whatever the "printf" i'm giving in c should be seen in my perl output, and whatever i give the input in perl should go to c program as input. We have tried many ways but didn't succeed. Please help .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing remote c program
by Anonymous Monk on Nov 25, 2011 at 08:44 UTC | |
|
Re: Executing remote c program
by zentara (Cardinal) on Nov 25, 2011 at 15:31 UTC | |
|
Re: Executing remote c program
by TJPride (Pilgrim) on Nov 25, 2011 at 12:04 UTC | |
|
Re: Executing remote c program
by rovf (Priest) on Nov 25, 2011 at 09:51 UTC | |
|
Re: Executing remote c program
by McA (Priest) on Nov 25, 2011 at 11:16 UTC | |
|
Re: Executing remote c program
by locked_user sundialsvc4 (Abbot) on Nov 25, 2011 at 14:18 UTC |