Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-11-2004, 10:57 AM   #1
LQ Newbie
Registered: Nov 2004
Location: NC
Distribution: RH
Posts: 2

Rep: Reputation: 0
Trouble with a shell script running with inetd

We are trying to get a shell script to run that listens on a port and when it receives the query it runs a program. Below are our entries in inetd,conf, services and the shell scripts. What is happening it recongnizes the quesrt coming in on the port and it runs the script but it only runs the 1st line. We have run the scrip from the command line and it works. Can anyone tell me what might be causing it to hang up after the first line. Could it be the inetd.conf entry? Thanks for all of you help in advance. Scott
1. /etc/services ENTRY

labcorp 9004/tcp # LABCORP HL7

2. the inted.conf ENTRY (SHOULD THERE BE an ARGUMENT at the end?)

labcorp stream tcp nowait root /boot/usr/newsoft/labhl7

3. the labhl7 script


4. lab_run script (we had it all under one script and tried to break it out to see if that would work and it did not) (it only runs the 1st line)

cat > /boot/usr/newsoft/GETLAB
cp /boot/usr/newsoft/GETLAB /boot/usr/newsoft/GETLAB2
# /boot/usr/newsoft/rmrk /boot/usr/newsoft/GETLAB /boot/usr/newsoft/GETLAB2
cat /boot/usr/newsoft/LABCOR >


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
running a script from inetd/xinetd spyghost Linux - Networking 3 09-20-2005 05:12 AM
Trouble with a shell script running with inetd scottd431 Linux - General 0 11-11-2004 10:05 AM
Trouble in Shell Script Gerardoj Linux - General 6 12-02-2003 10:21 PM
inetd script in /etc/init.d is running amuck int0x80 Linux - Newbie 1 03-07-2003 10:51 PM
c/c++ running a shell script? thermalpants Programming 3 05-12-2002 12:41 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:23 AM.

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