Technical article 100028

AFPS client printing reports the error "syntax error at line 1: ')' unexpected".

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

I have configured a client printer with my SCO Advanced File and Print Server system. However, the print request fails to print and an error, similar to the following, is mailed to the "root" user of the SCO system:

From lp Fri Nov 1 17:47:43 1996 From: Printer administrator <lp@scosysv.UUCP.com> X-Mailer: SCO OpenServer Mail Release 5.0 To: root@scosysv.UUCP.com Date: Fri, 1 Nov 96 17:47:43 GMT Message-ID: <9611011747.a0B65@scosysv.UUCP.com>

Subject: Status of lp request laser1-315

Your request laser1-315 destined for laser1 encountered an error while printing on printer laser1. Printing stopped with an exit code of 2.

Reason for failure:
/usr/spool/lp/admins/lp/interfaces/laser1: syntax error at
line 1: `end of file' unexpected
OR:
Reason for failure:

/usr/spool/lp/admins/lp/interfaces/laser1: syntax error at line 1: ' ) ' unexpected

Cause

Client printing is set up via the SCOadmin Print Manager. a UNIX printer is created, for example "laser1", that is mapped to a printer shared out, for example, by a Microsoft Windows for Workgroups or Windows 95 PC client. As part of the configuration, a password can be set for this share within the SCOadmin interface that should match that set on the client side. This is encrypted and passed through to the interface script that is created for this printer using the default "passthrough" interface (in this case, laser1). The encryption results in the generation of characters that the interface script cannot parse correctly.

The first error message above is generated if a password has been
set; the second, if no password has been set on the client share or
via SCOadmin. However, the interface still interprets no password
as an encrypted carriage return.

Solution

This problem has been reported to SCO Engineering.

As a workaround, when the printer is being configured via the SCOadmin Printer Manager, do not enter the "Password" field. Click the "OK" option immediately after specifying the client system name and its local print share name. Do not enter or type carriage return or any characters in the "Password" field. If already configured, the printer should be deleted and re-created. Deleting the password for a currently configured remote Windows printer via the "Settings/ Connection" option will not resolve the problem.

See also

SCO Advanced File and Print Server Administrator's Handbook, "Managing shared printers", Page 73.

From the Xinuos technical article database, record 100028. Reproduced with permission. The original is at www.sco.com/ta/100028, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.