home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!stl!bnr.co.uk!th
- From: th@bnr.co.uk (Tony Heskett)
- Newsgroups: comp.protocols.appletalk
- Subject: setdefaulttimeouts probs
- Message-ID: <1992Aug27.181821.10480@bnr.co.uk>
- Date: 27 Aug 92 18:18:21 GMT
- Sender: daemon@bnr.co.uk
- Reply-To: th@bnr.co.uk (Tony Heskett)
- Followup-To: comp.protocols.appletalk
- Organization: BNR Europe Limited, London Road, Harlow, Essex, GB
- Lines: 66
-
-
- Julian Turnbull writes (re "setdefaulttimeouts") :
-
- > Here, we get round it by patching lwsrv to toss away the
- > offending chunk of PostScript (not just that line). However, I
- > haven't offered that patch to djh because
-
- Which were the other bits you threw, please, and why ?
-
- > (a) it's a dirty hack;
- > (b) when I did it, no-one else was complaining of the problem,
- > so I thought it must be something peculiar about our local setup.
- > Now I'm seeing a couple of messages that suggest the problem is
- > more widespread, and I'm starting to wonder why _everybody_
- > isn't seeing it.
-
- That's funny, that's just what we thought ...
-
- > Can someone out there offer an explanation (or a more elegant
- > solution)?
-
- I can offer a dirtier solution ('cos I didn't want to change the C
- source). Use the -C switch on lwsrv to define a different print
- command from lpr/lp, then put this in a script with the name you
- chose:
-
- #!/bin/sh
-
- # Filename is the last argument that lwsrv passes to lpr.
- FILENAME=`echo $* | awk '{print $NF}'`
-
- # Hack the setdefaulttimeout line out of the PostScript file.
- /usr/stl/bin/perl -p -i -e 's/^.*setdefaulttimeout.*$//;' ${FILENAME}
-
- # Re-run the original print job with the fixed-up file.
- /usr/ucb/lpr $@
-
- No shame, eh ? :-)
-
- BTW, sed silently lost half the file, presumably because some of
- the lines were too long. Thanks, Larry.
-
- A bit later, tilley@ccu.umanitoba.ca (Richard Tilley) writes:
-
- > The prep file I looked at only executed "setdefaulttimeouts" if
- > the current "waittimeout" was less than 300 seconds. The default
- > on most printers will be 30 seconds. Changing this default to
- > 300 bypassed the problem.
-
- I looked for this setdefaulttimeout command in the Transcript
- s/w, got Mac to print to local disk (PS file) and checked there,
- grepped through all the CAP procsets ... I could only find it
- in the file in the Unix spool directory.
-
- So what gives ? Do I have to save a new procset, then change the
- 30 sec to 300 sec in there ? If so, could you p'raps point me in
- the correct direction for instructions on how to do this ?
-
- Incidentally, I should be following the postings here but if you've
- got any really great suggestions (or flames 8^) I'd be chuffed
- if you'd email me them too. If not, no prob.
-
- Cheers - Tony
- ____________________________________________________________________________
- Tony Heskett th@bnr.co.uk Tel: (+44) 279 402637, (+44) 831 546576
- BNR, London Road, Harlow, CM17 9NA Fax: (+44) 279 451434
-