Issue 61588 - Unable to print OpenOffice files from the command prompt
Summary: Unable to print OpenOffice files from the command prompt
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: *Testproduct
Classification: Test
Component: another (show other issues)
Version: OOo 2.0
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: not determined
Assignee: issues@test
QA Contact: issues@test
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 18:37 UTC by rmiesen
Modified: 2006-11-16 11:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rmiesen 2006-02-03 18:37:46 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?
Comment 1 lars 2006-02-05 13:08:04 UTC
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
Comment 2 hmssg 2006-03-06 22:01:41 UTC
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.
Comment 3 rmiesen 2006-03-07 22:33:50 UTC
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! 
Comment 4 Rainer Bielefeld 2006-11-16 11:09:18 UTC
Due to comments from rmiesen Tue Mar 7 14:33:50 -0800 2006 
Comment 5 Rainer Bielefeld 2006-11-16 11:09:35 UTC
.