A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

January 29, 2014

Run script on port connection

Hello everybody,

I'm not so smart with linux and I need to find a solution to a problem that's conceptually very easy.
I need to run a script that already works fine when a connection comes in a specific (any) port. I mean when I ping my server on a specific port, say 2.43.64.23:123 the linux server runs a specific script in a PATH folder.
How can I get this?

Click Here!