Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-19-2005, 12:24 AM
|
#1
|
Member
Registered: Jun 2003
Distribution: Redhat
Posts: 245
Rep:
|
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.
|
|
|
09-19-2005, 08:22 AM
|
#2
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
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.........
|
|
|
09-19-2005, 11:48 PM
|
#3
|
Member
Registered: Jun 2003
Distribution: Redhat
Posts: 245
Original Poster
Rep:
|
thanks, i got your idea, but how about if i place it in /etc/inetd.conf?
|
|
|
09-20-2005, 04:12 AM
|
#4
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|