[KLUG Members] Need C Help

Adam Williams members@kalamazoolinux.org
03 Aug 2002 11:16:11 -0400


On Thu, 2002-08-01 at 09:31, adam@morrison-ind.com wrote:
> My ultimate need is to write a service provider whereby I can control an LPRng
> print server via XML-RPC calls.  But initially I'm just trying to write a little
> utility that can communicate with the lpd daemon on the local host.  According
> to the specs, with lprng,  I can send a "\006{printername} {agentname}
> {key/commands} {option}" string to the server and then get some kind of response
> back.  But my little utility does -
> 
> [root@lnx01688 tmp]# ./xmllpcd actps adam stop
> Printer Name: actps
> Agent Name: adam
> Printer Command:  stop
> 
> [root@lnx01688 tmp]#
> 
> And queue actps is not effected.  It should write to stdout and feedback it gets.


Oops!  Ifixed it.  Forgot to terminate the command with a newline (\n). 
Works now. :)