[cups.general] [offtopic] Incomplete data received with scripted netcat that emulates a JetDirect printjob receiver

Jerome Alet alet at librelogiciel.com
Sun Jun 8 00:33:13 PDT 2008


On Sat, Jun 07, 2008 at 08:41:24PM -0700, Kurt Pfeifle wrote:
> 
> If I remove the "&" from the listener-watchdog call in the "rc-listener" startup script, that script does not return the shell console to me. However, if I use "^Z;bg" to put it into the background, it works perfectly, and all data arrive without fail.
> 
> I'm at my wits' end. It seems to be connected to the mentioned backgrounding of the "listener-watchdog" call inside the "rclistener" script.
> 
> Why...
>    ...does putting that one line directly into the background inside
>       the script *not* work,
>    ...while calling it normally, but instead putting the whole script
>       manually into the background work

Instead of using a script in /etc/init.d/, couldn't you edit your
/etc/inittab file and put this line at the bottom :

--- CUT ---
lw:2345:respawn:/usr/local/bin/listener-wrapper >/tmp/log 2>/tmp/err
--- CUT ---

Then do a :

        telinit q
        
This will replace both your rc-listener script and your watchdog,        
elimintating in the process potential sources of problems.

bye

Jerome Alet





More information about the cups mailing list