#145 cannot print from xdvi

system-dependent
closed-postponed
nobody
3
2003-05-12
2003-04-08
No

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
http://www.mail-archive.com/tetex-pretest@informatik.uni-hannover.de/msg00663.html)
invoking dvips as 'dvips -o - | lpr' would probably be
more robust.

Discussion

  • Diego Santa Cruz

    Logged In: YES
    user_id=64464

    Forgot to say, using 22.74-beta1

     
  • Stefan Ulrich

    Stefan Ulrich - 2003-04-08

    Logged In: YES
    user_id=177175

    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
    user_id=177175

    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:
    http://xdvi.sourceforge.net/faq.html#dvips-rh8
    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