Apache OpenOffice (AOO) Bugzilla – Issue 61588
Unable to print OpenOffice files from the command prompt
Last modified: 2006-11-16 11:09:35 UTC
I was trying to print off a collection of documents I was working on for a software development project by running this command: $ openoffice.org-2.0 -p `find . -printf "\"%p\" "` When I ran this command, nothing happened and nothing was sent to my default printer to be printed. Is there something wrong with my use of command subsitution (the stuff between the "`") or is this a genuine defect with openoffice-2.0's interpretation of command-line arguments?
if you want this issue to be answered you must file it in another component other than testproduct. Framework seems right. If you like, I can reassign this issue for you. I don't have an answer to your problem, but you can also ask on the users mailing list http://www.openoffice.org/mail_list.html
it seems not to be an openoffice defect. to see, what your shell delivers, just add an "echo" before your command: echo openoffice.org-2.0 -p `find . -printf "\"%p\" "` next step is, to suppress anything but files (e. g. dirs): echo openoffice.org-2.0 -p `find . -type f -printf "\"%p\" "` if you like, what you got, send it by pipe to bash: echo openoffice.org-2.0 -p `find . -type f -printf "\"%p\" "` |sh Hope, this will help you.
Thank you for your help. I think I found a better solution to my problem as well. I have found that find can take all the files it finds and pass them as parameters to a command of your choosing. For example, the command: $ find A_Directory [options] -regex 'odt' -exec openoffice.org-2.0 -p '{}' + Will recursively print off all of your Open Office Documents in A_Directory. BE CAREFUL when doing this! If you aren't, then you could easily eat up a bunch of paper...especially if you are playing with a directory holding software development documentation written using OpenOffice.org!
Due to comments from rmiesen Tue Mar 7 14:33:50 -0800 2006
.