Linux.com

Run script on port connection

Link to this post 29 Jan

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?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board