Technical article 105491

trchan returns non-zero status after successfully mapping a file, not zero.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

Using trchan to perform mapping as a filter to format printouts is successful but when trchan is complete, status is returned as "255" instead of "0".

The following trchan script returns 255 after completing the print job successfully:

# trchan filter < some_file > /dev/lp0;  echo $?
# 255

Solution

This problem has been fixed by SCO Engineering.  The new "trchan"
 is available from SCO Support.

This fix will be incorporated in the next release of SCO OpenServer.

See also

man (M) trchan

From the Xinuos technical article database, record 105491. Reproduced with permission. The original is at www.sco.com/ta/105491, 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.