@KOM:
i dont know is it possible, if ya how can i do it.
I don't know. That looks more like a development question, not pfSense specific, and it may be outside the scope of these forums.
thanks, i solved the Problem. there is two solution:
i could use tcpdump to see all the traffic including data which i send from my Computer.
using tcp socket
finally i choosed second way, wrote a tcp socket as Server in c and execute it from console. Now i can send commands through tcp to second System (my Gateway) with some Parameters and execute the Shell script with These parameters.