pd
Full Member level 1
Hi!
Can anybody tell how can I exchange variables between c, perl and shell scripts?
For example say I have a code in C (test_return.c) as:
#include<stdio.h>
int main()
{
x=5;
return x;
}
Now I want to access the value of variable x in the shell script.How can I do that?
In the shell script I am running the exe file created from the compiled and build exe from the c code.
E.g. ./test_return.exe
Thanks,
pd
Can anybody tell how can I exchange variables between c, perl and shell scripts?
For example say I have a code in C (test_return.c) as:
#include<stdio.h>
int main()
{
x=5;
return x;
}
Now I want to access the value of variable x in the shell script.How can I do that?
In the shell script I am running the exe file created from the compiled and build exe from the c code.
E.g. ./test_return.exe
Thanks,
pd