Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a bash script to listen on specific port (using xinetd), so whenever there is someone connecting to port, then it invokes the script and provides its output to user. But i need to provide dynamic arguments to server, for example when i telnet to server like

telnet myserver 4535

then i should be able to pass an argument like my name "Frank" and it should say

"Hello Frank"

There is a parameter of server-args in xinetd config, but i am not sure that arguments to it can be passed dynamically through the telnet or not.

share|improve this question
up vote 1 down vote accepted

On the initial telnet command line, I doubt you'll be able to put passable arguments. However, as part of the transactions between the server and client you'll certainly be able to do something like this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.