Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Tom,

Neither of -v or --verbose is recognized as a command line option. I'm
using libreoffice 4.0.1.2, and here are the command line options that it
supports.

I wish I could find a way to get more information about why it's failing!

Cheers,
Graham

==================================

Unknown option: -v

Usage: soffice [options] [documents...]

Options:
--minimized    keep startup bitmap minimized.
--invisible    no startup screen, no default document and no UI.
--norestore    suppress restart/restore after fatal errors.
--quickstart   starts the quickstart service
--nologo       don't show startup screen.
--nolockcheck  don't check for remote instances using the installation
--nodefault    don't start with an empty document
--headless     like invisible but no userinteraction at all.
--help/-h/-?   show this message and exit.
--version      display the version information.
--writer       create new text document.
--calc         create new spreadsheet document.
--draw         create new drawing.
--impress      create new presentation.
--base         create new database.
--math         create new formula.
--global       create new global document.
--web          create new HTML document.
-o             open documents regardless whether they are templates or not.
-n             always open documents as new files (use as template).

--display <display>
      Specify X-Display to use in Unix/X11 versions.
-p <documents...>
      print the specified documents on the default printer.
--pt <printer> <documents...>
      print the specified documents on the specified printer.
--view <documents...>
      open the specified documents in viewer-(readonly-)mode.
--show <presentation>
      open the specified presentation and start it immediately
--accept=<accept-string>
      Specify an UNO connect-string to create an UNO acceptor through which
      other programs can connect to access the API
--unaccept=<accept-string>
      Close an acceptor that was created with --accept=<accept-string>
      Use --unnaccept=all to close all open acceptors
--infilter=<filter>
      Force an input filter type if possible
      Eg. --infilter="Calc Office Open XML"
--convert-to output_file_extension[:output_filter_name] [--outdir
output_dir] files
      Batch convert files.
      If --outdir is not specified then current working dir is used as
output_dir.
      Eg. --convert-to pdf *.doc
          --convert-to pdf:writer_pdf_Export --outdir /home/user *.doc
--print-to-file [-printer-name printer_name] [--outdir output_dir] files
      Batch print files to file.
      If --outdir is not specified then current working dir is used as
output_dir.
      Eg. --print-to-file *.doc
          --print-to-file --printer-name nasty_lowres_printer --outdir
/home/user *.doc

Remaining arguments will be treated as filenames or URLs of documents to
open.





On Thu, Mar 28, 2013 at 10:49 AM, Tom [via Document Foundation Mail
Archive] <ml-node+s969070n4046756h61@n3.nabble.com> wrote:

Hi :)
I think you should NOT be using trying to run as SuperUser by su or sudo
or anything.  It should work without that but i agree it was a good idea to
give it a go to see what happens.

Can you try adding the tag

-v

or

--verbose

to see if it gives you more output to explain what is going wrong?
Perhaps something like

/opt/libreoffice4.0/program/soffice --headless -v --convert-to pdf
sample.ppt

I'm not sure if position matters but i think it doesn't.  If it does then
i've probably put it in the wrong place.  You can find out more about the
tags that can be used in Gnu&Linux by just using the tag

-h

or

--help

Btw the double - and full word seems to be the newer way but not everyone
has caught up yet so sometimes programs still need the shorter tag or are
happy with either.  Its getting less messy like that now but it takes time
for an evolution like that to ripple outwards.  Machines in remote places
might be worth holding back from radical upgrades just in case something
does go wrong.  No-one wants to go for a long hike in space just to plug a
keyboard in and sit doing coding work.
Regards from
Tom :)






________________________________
From: Graham Glass <[hidden email]<http://user/SendEmail.jtp?type=node&node=4046756&i=0>>

To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4046756&i=1>
Sent: Thursday, 28 March 2013, 2:57
Subject: [libreoffice-users] --convert-to always fails silently on Ubuntu

Hi everyone,

I just downloaded libreoffice 4 and installed it on a Mac (Lion) and
Linux
(Ubuntu). On the Mac, everything works exactly as I expected, and I can
easily convert documents to pdfs using the command line tool like this:

/Applications/LibreOffice.app/Contents/MacOS/soffice --headless
--convert-to
pdf sample.ppt

However, on Unbuntu, when I execute the equivalent command, it always
fails
quickly and silently with exit code 77 (Permission denied).

/opt/libreoffice4.0/program/soffice --headless --convert-to pdf
sample.ppt

This failure happens regardless of whether I am a regular user or
superuser.
I am not running libreoffice via a user interface, and this command is
being
executed on an Amazon EC2 headless machine.

Can someone offer any advice, either a method to get more error
information
(such as a log file or a verbose flag) so I can figure out what's going
on?
I'm sure it's a simple issue, but right now the lack of error reporting
is
making it hard to get the issue resolved.

Thanks in advance!

Cheers,
Graham



--
View this message in context:
http://nabble.documentfoundation.org/convert-to-always-fails-silently-on-Ubuntu-tp4046531.html
Sent from the Users mailing list archive at Nabble.com.

--
For unsubscribe instructions e-mail to: [hidden 
email]<http://user/SendEmail.jtp?type=node&node=4046756&i=2>
Problems?
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted




--
For unsubscribe instructions e-mail to: [hidden 
email]<http://user/SendEmail.jtp?type=node&node=4046756&i=3>
Problems?
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted



------------------------------
 If you reply to this email, your message will be added to the discussion
below:

http://nabble.documentfoundation.org/convert-to-always-fails-silently-on-Ubuntu-tp4046531p4046756.html
 To unsubscribe from --convert-to always fails silently on Ubuntu, click
here<http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4046531&code=Z3JhaGFtLmdsYXNzQGdtYWlsLmNvbXw0MDQ2NTMxfDE5NDA1OTkyNjM=>
.
NAML<http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>





--
View this message in context: 
http://nabble.documentfoundation.org/convert-to-always-fails-silently-on-Ubuntu-tp4046531p4046757.html
Sent from the Users mailing list archive at Nabble.com.
-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.