#145 cannot print from xdvi


I cannot print from xdvi, when I select print from the
File menu.

Diagnostics say:

Calling: dvips with arguments:
1: |-f|
2: |-o!lpr|
This is dvips(k) 5.86 Copyright 1999 Radical Eye
Software (www.radicaleye.com)
' TeX output 2003.04.08:1919' -> !lpr
dvips: ! couldn't open output pipe

Print process returned exit code 1.

The problem is that newer dvips releases/builds (as in
RedHat 8.0) have secure mode on, which prevents using a
pipe in the -o option of dvips. Although that behaviour
is broken (see
invoking dvips as 'dvips -o - | lpr' would probably be
more robust.


  • Diego Santa Cruz

    Logged In: YES

    Forgot to say, using 22.74-beta1

  • Stefan Ulrich

    Stefan Ulrich - 2003-04-08

    Logged In: YES

    I've asked Paul (maintainer of xdvi) what he thinks of this,
    since if this is to be changed, it should probably be
    changed in both versions. (It's not a completely trivial
    change; we don't use a shell for the dvips command, so we'd
    need to set up the pipe ourselves).

  • Stefan Ulrich

    Stefan Ulrich - 2003-04-08
    • labels: 317805 --> file handling
    • milestone: 109804 --> system-dependent
    • priority: 5 --> 3
  • Stefan Ulrich

    Stefan Ulrich - 2003-05-12
    • status: open --> closed-postponed
  • Stefan Ulrich

    Stefan Ulrich - 2003-05-12

    Logged In: YES

    Discussion has shown that an approach with a wrapper script
    might be the easiest, until the bug is fixed in dvips.

    I've now added a FAQ item for this on:
    and I'll close this bug as `postponed' for the time being.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks