There's another way to communicate between the server and the client.
You can use socket communication with perl, and if you want to execute something, you can combine it with Shell script.
But I still have a problem with executing from shell script. Somehow it keeps gave me memory fault (core dump) when I tried to call C program from shell script.
Could anyone tell me how to run C program including pass the variables from Perl?
Thanks.