User defined service


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers User defined service
# 1  
Old 02-08-2006
User defined service

I want to add a new IP service which executes a script on SCO OS5.

I have amended /etc/services and added to port number (3333)

I have amended /etc/inetd.conf and added a line for this service but I can't get it to execute my own shell script

When I telnet to the IP address on port 3333 I get the "hwconfig" output, I want to run my own script but I get an error saying "File/directory not found"

Below is the line I have added into inetd.conf

hello stream tcp nowait NOLUID /etc/hwconfig

I have tried replacing "/etc/hwconfig" with "/tmp/hello" but it will not run ???
# 2  
Old 02-09-2006
after adding the entry in inetd.conf

did u send a SIGHUP signal (1) to the inet services daemon?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Biff service not defined in /etc/services

Hello all. I am getting this error on my mail log file at /app/syslog in AIX. Sep 23 07:12:06 teamaix mail:info bellmail: biff service is not defined in /etc/services ========================================================= Here is what I have for the settings: teamaix(root): / -> biff... (0 Replies)
Discussion started by: pregmi
0 Replies

2. UNIX for Dummies Questions & Answers

Biff service not defined in /etc/services

Hello all. I am getting this error on my mail log file at /app/syslog in AIX. Sep 23 07:12:06 teamaix mail:info bellmail: biff service is not defined in /etc/services Here is what I have for the settings: teamaix(root): / -> biff is y teamaix(root): / -> mesg is y teamaix(root): / ->... (0 Replies)
Discussion started by: pregmi
0 Replies

3. UNIX for Dummies Questions & Answers

user defined commands

Hi, i would like to create user defined commands. e,g: if an user executes , mkdircd test then a directory called test should be created and it should be cd to test. How i can create the command mkdircd with below action: mkdir $1 && cd $1. Please help me in achieving this (7 Replies)
Discussion started by: pandeesh
7 Replies

4. Shell Programming and Scripting

User defined functions in awk

Hi; Is der ne to to use user defined functions for the values in awk find $1 -type f -ls | nawk '{{print "|"$3"|"$5"|"$6"|"$8"|"$9"|"$10"|"} for(i=11;i<=NF;i++){printf("%s",$i)}}' In above command i want to append some values returned by user functions on line. thnks; ajay (1 Reply)
Discussion started by: ajaypadvi
1 Replies

5. Programming

add more user-defined signals

Hi Is there a way to add more user-defined signals? I am currently using SIGUSR1 and SIGUSR2 - but I need another one. How can I do that? Thanks! (9 Replies)
Discussion started by: naamabm
9 Replies

6. Solaris

Wants to use User defined Macro in Makefile

I am converting 32-bit C++ code to 64-bit on Solaris. I have used unsigned long in number of files. I want it to convert to unsigned int for 64-bit. Total files are around 2000. Can you please help me if possible to do it in makefile using MACRO while build. If it is not possible any other... (2 Replies)
Discussion started by: amit_27
2 Replies

7. Shell Programming and Scripting

need help with User Defined Function

Dear Friends, I need a help regarding User defined function in shell script. My problem is as follows: my_func.sh my_funcI(){ grep 'mystring' I.dat } my_funcQ(){ grep 'mystring' Q.dat } myfuncI myfuncQ But As both the function has same function only the... (11 Replies)
Discussion started by: user_prady
11 Replies

8. AIX

User defined signal 1

Hi, I am just running a incremental back-up on one of my server. But these days It abrubtly fails with below error. ========== User defined signal 1 =========== When I rerun the back-up, It completed successfully.Earlier this was not happening. Any Idea, what could be the problem... (0 Replies)
Discussion started by: nitesh_raj
0 Replies

9. Shell Programming and Scripting

Nawk user-defined function

HELP!!!! I am in an on-line shell programming class and have a question. Here is the data: Mike Harrington:(510) 548-1278:250:100:175 Christian Dobbins:(408) 538-2358:155:90:201 Susan Dalsass:(206) 654-6279:250:60:50 (There are 12 contribuors total) This database contains names, phone... (1 Reply)
Discussion started by: NewbieGirl
1 Replies
Login or Register to Ask a Question