I want to send some data to a root process with a named pipe. Here is the script and it works great:
#!/bin/sh pipe=/tmp/ntp if [[ ! -p $pipe ]]; then mknod
You can use stty to set a timeout. IIRC its something like
stty -F $pipe -icanon time 0