On Mon, Apr 29, 2002 at 02:53:32PM -0400, Michael Cardenas wrote: > On Mon, Apr 29, 2002 at 10:09:19PM +0200, Marcus Meissner wrote: > > > trying to do an > > > > > > echo "print" | lpr -Peng > > > > Actually WINE assumes that a CUPS printer can be sent jobs using > > lpr -P<printername> on stdin. > > > > If this is not the case, you will have to change dlls/gdi/printdrv.c > > and dlls/winspool/info.c. > > Apparently, the correct command for cups is lp and -P needs to be > replaced with -d I don't know how the cups package is build on debian, but cups provides both commands lpr and lp. And both commands work.
bye michael > > so by changing > > if (!strncmp("LPR:",pszOutput,4)) > sprintf(psCmd,"|lpr -P%s",pszOutput+4); > > to > > if (!strncmp("LPR:",pszOutput,4)) > sprintf(psCmd,"|lp -d%s",pszOutput+4); > > in > > wine/dlls/gdi/printdrv.c > > it now works, but only for CUPS printers. > > I'll send a patch that checks the registry for a description with CUPS > in it and uses lp -d if appropriate. > > thanks for the help. > > -- Michael Stefaniuc Tel.: +49-711-96437-199 System Administration Fax.: +49-711-96437-111 Red Hat GmbH Email: [EMAIL PROTECTED] Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart
msg09383/pgp00000.pgp
Description: PGP signature