> I am writing an application which runs as a SERVER in the background.
> Any client process can form a connection to this server which forks
> a child process to serve this client. I need to have a menu selection
> in this child server process which can accept the input from keyboard.
> This may sound strange but the application really needs to do this. The
> main server is started during the boot time. Note that this application
> will be running on Solaris system running open windows!
> Has anyone done this before or has any idea how to proceed?
You can't have a background process taking keyboard input. What you most
likely want is the client process accessing the keyboard, passing the
information to the server, the server doing something with it, and passing
that back to the client. Background processes are just that, in the
background. Having them try to interact with the keyboard isn't a good
idea. Also, if you want to print messages from a background process, you're
better off using syslog for this.
Doug Hughes Engineering Network Services
System/Net Admin Auburn University
Apple T-shirt on Win95 - "Been there, done that"