LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2005, 12:24 AM   #1
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Rep: Reputation: 30
running a script from inetd/xinetd


hi,

i've been wondering if its possible to run a script from the inetd/xinetd? will a simple shell script suffice this or do i still need a perl script that will act as a server?

as much as possible i don't want to do things i c or other sort of programming language.
 
Old 09-19-2005, 08:22 AM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi spyghost,
You can just run a script from netd/xinetd. just open up a file under /etc/xinetd.d/ in the name of your script and add the default values which can be copied from any of the other service files which lie in /etc/xinetd.d . in every configuration file under xinetd .. ie .. in /etc/xinetd.d/ .. you have a directive named "server = /Path/to/scriptfile". this is the location in which you must keep your script. after that just restart xinetd by the command " service xinetd restart". this will start the service script..
vimal.........
 
Old 09-19-2005, 11:48 PM   #3
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Original Poster
Rep: Reputation: 30
thanks, i got your idea, but how about if i place it in /etc/inetd.conf?
 
Old 09-20-2005, 04:12 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi spyghost,
the file you specified (/etc/inetd.conf), is the configuration file for inetd service. you cant add the script there since it controls another daemon. you can add it as i said earlier.
vimal...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Inetd or Xinetd? allelopath Linux - Software 2 04-13-2005 01:03 PM
Trouble with a shell script running with inetd scottd431 Linux - Networking 0 11-11-2004 09:57 AM
Trouble with a shell script running with inetd scottd431 Linux - General 0 11-11-2004 09:05 AM
inetd script in /etc/init.d is running amuck int0x80 Linux - Newbie 1 03-07-2003 09:51 PM
inetd VS xinetd dave4545 Linux - Newbie 22 10-24-2002 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:46 PM.

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