Jeremy Mates schrieb:
* Rasca <[EMAIL PROTECTED]>
for a long time I try to have a LPRng installation which will also accept job submissions from macos 9.x clients.
The lpr support in Mac OS 9 is flaky at best. Upgrade the Mac OS 9 clients to Mac OS X, or use netatalk as a gateway to LPRng.
I wrote a small C-program to trace the communication. (source attached below) I hope I understood the RFC, so the result of the dump points to the problem, that the Mac is senden the first command more then twice.
May be someone can fix this with a workaround in LPRng?
out.txt:
02, dummy
02, dummy
02, dummy
02, dummy
02, dummy
02, dummy
02, 58 cfA507mtv
..
dump515.c (called by inetd):
#include <stdio.h>
#define MAXLINE 1024
int main (int argc, char **argv) {
unsigned char cmd;
char line[MAXLINE+1];
FILE *fp;
int len, c; fp = fopen ("/tmp/out.txt", "wb");
if (!fp)
return -1; while (fgets(line, MAXLINE, stdin)) {
len = 0;
cmd = *line;
/* show me what happens
*/
fprintf (fp, "%02X, %s\n", cmd, line+1);
fflush (fp);
if (cmd == 2) {
sscanf (line+1, "%d", &len);
}
fputc (0, stdout);
fflush (stdout);
if (len) {
while (len--) {
c = fgetc (stdin);
fprintf (fp, "%c", c);
}
fprintf (fp, "\n");
fputc (0, stdout);
fflush (stdout);
}
}
return 0;
}cu rasca
-- _______________________________________________________________ | Triad Berlin Projektgesellschaft mbH | http://www.triad.de/ |
----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
