I need some help on creating a looping perl script that will allow connections on a port from a certain IP. Based on the command sent the perl script would execute a shell script and then the perl script would return the value to the calling host.
for example
I send a udp connection to with a variable processes, the perl script would execute ps -ef | grep -c "" and return back tot he udp connection.
I'm not very good with perl but have seen this done before in the past.
Any help would be great.
Thanks.