Welcome to the Linux Foundation Forum!

Run script on port connection

Options
robertofusco
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 2.43.64.23:123 the linux server runs a specific script in a PATH folder.

How can I get this?

Comments

  • paolo91
    Options

    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.

Categories

Upcoming Training