- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: acroread command line
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 01:21 PM
тАО07-01-2010 01:21 PM
acroread command line
I am attempting to use acroread to print PDF files via the command line on my 11.23 installation. I have acrobat reader 7.0.9 installed and operational, but whenever I try to execute acroread from the command line I get an "Cannot open display" error. I am using PuTTY to connect, so there is no display to open.
# acroread -help
(acroread:15331): Gtk-WARNING **: cannot open display:
#
# acroread
(acroread:15358): Gtk-WARNING **: cannot open display:
#
I have successfully used acroread from an X emulator, but my ultimate goal here is to use acroread from the command line and script something that will run in cron to print PDF's automatically.
Any help or ideas are greatly appreciated.
Thanks,
--John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 02:11 PM
тАО07-01-2010 02:11 PM
Re: acroread command line
to run the acroread, you need GUI, or exported Display to some Xserver.
acroread reuired GUI.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 02:24 PM
тАО07-01-2010 02:24 PM
Re: acroread command line
Did you try something like this:
# acroread -toPostScript
-size a4 myfile.pdf | lp -dmyprinter
The alternative is to try to use
Ghostscript.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 02:26 PM
тАО07-01-2010 02:26 PM
Re: acroread command line
an X display (even if it doesn't really need
one). I know nothing, but I gather that for
(very) non-interactive use (like, say,
"-toPostScript"), it may be less demanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 07:51 AM
тАО07-02-2010 07:51 AM
Re: acroread command line
It appears mikap is correct in that the GUI is required.
Using VK2COT's suggestion:
# acroread -toPostScript mydocument.pdf | lp -diss
(acroread:29368): Gtk-WARNING **: cannot open display:
lp: standard input is empty
lp: request not accepted
#
I missed whatever document said that an X server was required for acroread, so I am just wondering... with Ghostscript will I be able to print pdf's automatically with a Bourne shell script via cron?
Thanks all,
--John