Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: PDF output to temp file

by Anonymous Monk
on Mar 22, 2012 at 09:06 UTC ( #960956=note: print w/ replies, xml ) Need Help??


in reply to Re: PDF output to temp file
in thread PDF output to temp file

It gives me this error when it try to run the above command -->Cannot parse arguments: Cannot open display:


Comment on Re^2: PDF output to temp file
Re^3: PDF output to temp file
by kcott (Abbot) on Mar 22, 2012 at 10:49 UTC

    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.

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960956]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-06 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls