Welcome to the Linux Foundation Forum!

Run script on port connection

robertofusco Posts: 1
edited January 2014 in Command Line/Scripting

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 the linux server runs a specific script in a PATH folder.

How can I get this?


  • paolo91

    I think that this is very difficult to do in bash scripting. You need to use a programming language such as Python or any other else that is adapted to this scope.


Upcoming Training