LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2011, 06:39 AM   #1
ali2011
Member
 
Registered: Nov 2011
Location: USA, CA
Distribution: Ubuntu+Fedora
Posts: 80

Rep: Reputation: Disabled
Difficulty with xinetd:


I need to run the nuttcp tool, but facing difficulty in using xinetd. I have a remote access to the machine I'm working on, and looking to follow these steps. No idea about xinted! After finishing, how can I run the tool with xinetd?


To use as an inetd or xinetd daemon, do the following:

1. Add an entry similar to the following to the /etc/inetd.conf file (for an IPv4 server).

Code:
nuttcp  stream  tcp     nowait  root    /usr/local/sbin/tcpd /usr/local/bin/nuttcp -S
2. Add entries like the following to the /etc/services file.

nuttcp 5000/tcp
nuttcp-data 5001/tcp
nuttcp6 5000/tcp
nuttcp6-data 5001/tcp

For inetd it may be necessary to run the IPv4 and IPv6 servers on
different ports.

3. Add a nuttcp entry to the /etc/hosts.allow file to control what hosts
you want to allow access to the nuttcp service.

4. Send a HUP signal to the inetd or xinetd process (older xinetd
requires USR2 signal).

Last edited by ali2011; 12-30-2011 at 06:43 AM.
 
Old 12-30-2011, 08:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just look at the format of a config file in /etc/xinetd.d/ and mangle that inetd line to look like an entire xinetd file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulty enios LinuxQuestions.org Member Intro 5 08-30-2011 11:50 PM
/etc/xinetd.conf vs /etc/xinetd.d foampile Linux - Server 2 04-24-2009 05:33 PM
Difficulty in understanding Gins Programming 6 07-12-2006 04:22 PM
FC$ up2date difficulty pddm Fedora 11 10-11-2005 02:35 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration