Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.