I hadn't come across evince before but find I have it on my system (Mac OS X):
$ perl -Mstrict -Mwarnings -E '`evince --help >> fred`;'
$ cat fred
Usage:
evince [OPTION...] [FILE…] GNOME Document Viewer
...
As you can see, I successfully redirected the output of the command to an output file. This is what you asked for (which I queried).
Given that I now know that this launches a document viewer, I'm wondering exactly what sort of output you're hoping to redirect to a file.
I probably can't be much help with the error you're getting except to suggest checking that your X Server is running correctly and $ENV{DISPLAY} has an appropriate value.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.