--convert-to issue

classic Classic list List threaded Threaded
18 messages Options
Ed_0 Ed_0
Reply | Threaded
Open this post in threaded view
|

--convert-to issue

Hi,

I would like to know, why does libreoffice open up after running in a
terminal "libreoffice --convert-to odt *.doc?

What if I want a recursive behaviour?

Thank you for answering.

Sincerely.


--
To unsubscribe e-mail to: [hidden email]
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

null null
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

Hello,
I think the reason why LibreOffice is popping up after you run a
--convert-to command is that you are not using --headless.  The flag
--headless hides the LibreOffice GUI, and only performs the operation
specified.  Also, it doesn't look like wildcards (the * that you used to
indicate all the files in a directory) work with LibreOffice.  I tested
this command in a folder with a bunch of .doc files in it:
soffice --headless --convert-to odt *.doc
It did not produce any output.
However, the following command works correctly, and does not load
LibreOffice afterwords:
soffice --headless --convert-to odt mydocfile.doc
(You would use the "libreoffice" command as it appears you are using
Linux, but because I am using Windows, I have to use "soffice.")
So, since wildcards (at least for me) don't work with LibreOffice, you
would have to create a script (if you wanted some kind of recursive
automation that you mentioned) that looped through the files that you
wanted to convert and ran the --convert-to command separately for each
one.  You can also use --outdir to change the output directory.
Here is an AskLO thread that may be useful:
http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/
I hope this helps!

Regards,
[hidden email]


On 3/4/2014 4:34 PM, Ed_0 wrote:

> Hi,
>
> I would like to know, why does libreoffice open up after running in a
> terminal "libreoffice --convert-to odt *.doc?
>
> What if I want a recursive behaviour?
>
> Thank you for answering.
>
> Sincerely.
>
>


--
To unsubscribe e-mail to: [hidden email]
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

nabbler nabbler
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by Ed_0
On 04/03/2014, Ed_0 <[hidden email]> wrote:
> Hi,
>
> I would like to know, why does libreoffice open up after running in a
> terminal "libreoffice --convert-to odt *.doc?
>

It should not do this. Check your installation again. (E.g:
http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html

> What if I want a recursive behaviour?
>

Try:

libreoffice --convert-to odt ./*.doc

--
To unsubscribe e-mail to: [hidden email]
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
TomD TomD
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

Hi :)
Oooo, i wish someone had posted either of those conversion methods
(scripting and command-line using ./ as a trick to say "in the current
folder" seemingly unnecessarily) in the recent Uk Gov proposal to move
to ODF.

Of the tiny percentage of objections the point about converting
existing documents was used as the main reason for having to move to
OOXML!  I pointed out that command-line and scripts would find it
easier to convert directly from Doc to Odt but actually knowing a
command to do so would have been fantastic!

Regards from
Tom :)





On 5 March 2014 13:08, e-letter <[hidden email]> wrote:

> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>> Hi,
>>
>> I would like to know, why does libreoffice open up after running in a
>> terminal "libreoffice --convert-to odt *.doc?
>>
>
> It should not do this. Check your installation again. (E.g:
> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>
>> What if I want a recursive behaviour?
>>
>
> Try:
>
> libreoffice --convert-to odt ./*.doc
>
> --
> To unsubscribe e-mail to: [hidden email]
> 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

--
To unsubscribe e-mail to: [hidden email]
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

Ed_0 Ed_0
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by null
On 04/03/14 19:56, null wrote:

> Hello,
> I think the reason why LibreOffice is popping up after you run a
> --convert-to command is that you are not using --headless.  The flag
> --headless hides the LibreOffice GUI, and only performs the operation
> specified.  Also, it doesn't look like wildcards (the * that you used to
> indicate all the files in a directory) work with LibreOffice.  I tested
> this command in a folder with a bunch of .doc files in it:
> soffice --headless --convert-to odt *.doc
> It did not produce any output.
> However, the following command works correctly, and does not load
> LibreOffice afterwords:
> soffice --headless --convert-to odt mydocfile.doc
> (You would use the "libreoffice" command as it appears you are using
> Linux, but because I am using Windows, I have to use "soffice.")
> So, since wildcards (at least for me) don't work with LibreOffice, you
> would have to create a script (if you wanted some kind of recursive
> automation that you mentioned) that looped through the files that you
> wanted to convert and ran the --convert-to command separately for each
> one.  You can also use --outdir to change the output directory.
> Here is an AskLO thread that may be useful:
> http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/
>
> I hope this helps!
>
> Regards,
> [hidden email]
>
>
> On 3/4/2014 4:34 PM, Ed_0 wrote:
>> Hi,
>>
>> I would like to know, why does libreoffice open up after running in a
>> terminal "libreoffice --convert-to odt *.doc?
>>
>> What if I want a recursive behaviour?
>>
>> Thank you for answering.
>>
>> Sincerely.
>>
>>
>
>

Hi,

Just tried "libreoffice --headless --convert-to odt *.doc* and it worked
like a charm.

Thank you!

Kind regards,

Ed


--
To unsubscribe e-mail to: [hidden email]
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

Ed_0 Ed_0
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by nabbler
On 05/03/14 10:08, e-letter wrote:

> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>> Hi,
>>
>> I would like to know, why does libreoffice open up after running in a
>> terminal "libreoffice --convert-to odt *.doc?
>>
>
> It should not do this. Check your installation again. (E.g:
> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>
>> What if I want a recursive behaviour?
>>
>
> Try:
>
> libreoffice --convert-to odt ./*.doc
>

Hi,

1) Hmm, I didn't understand those links, the errors displayed are these:

javaldx: Could not find a Java Runtime Environment!


Warning: failed to read path from javaldx

2) I'm not an expert or a sysadmin but I read some books about Linux. ls
and ls . or ls ./ is the same.

3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
                - $ libreoffice --headless --convert-to odt < file < ls -R
                - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
                - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
--outdir dir/

and it didn't work out...

I know very little Bash and some C. I think a script it's a better idea.
It has to execute the libreoffice command in each directory so that the
outdir is "that" directory.

I wish somebody could code it. If not, I will do it myself in the future.

Sincerely,

Ed


--
To unsubscribe e-mail to: [hidden email]
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
TomD TomD
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

Hi :)
Not sure about most of that but point 2

ls  is the same as
ls .   and
ls ./

it's just a bit of cleverness to try to get around weird limitations.
There shouldn't be any difference but what should be and what is are
sometimes different.

>From the summary, i agree that it would be nice to have a neat little
gui program to point&click on but the point being made here was that
its an incredibly trivial thing to do and multiple easy ways of doing
it without going to much effort at all.

Despite it being really trivial in LO/AOO and probably other office
suites and programs it's an option apparently not offered by MS Office
and therefore considered "rocket science".

It might be nice to point it out in consultation exercises.

Regards from
Tom :)



On 5 March 2014 16:51, Ed_0 <[hidden email]> wrote:

> On 05/03/14 10:08, e-letter wrote:
>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>> Hi,
>>>
>>> I would like to know, why does libreoffice open up after running in a
>>> terminal "libreoffice --convert-to odt *.doc?
>>>
>>
>> It should not do this. Check your installation again. (E.g:
>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>
>>> What if I want a recursive behaviour?
>>>
>>
>> Try:
>>
>> libreoffice --convert-to odt ./*.doc
>>
>
> Hi,
>
> 1) Hmm, I didn't understand those links, the errors displayed are these:
>
> javaldx: Could not find a Java Runtime Environment!
>
>
> Warning: failed to read path from javaldx
>
> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
> and ls . or ls ./ is the same.
>
> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>                 - $ libreoffice --headless --convert-to odt < file < ls -R
>                 - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
>                 - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
> --outdir dir/
>
> and it didn't work out...
>
> I know very little Bash and some C. I think a script it's a better idea.
> It has to execute the libreoffice command in each directory so that the
> outdir is "that" directory.
>
> I wish somebody could code it. If not, I will do it myself in the future.
>
> Sincerely,
>
> Ed
>
>
> --
> To unsubscribe e-mail to: [hidden email]
> 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

--
To unsubscribe e-mail to: [hidden email]
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

steveedmonds steveedmonds
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by Ed_0

On 2014-03-06 05:51, Ed_0 wrote:

> On 05/03/14 10:08, e-letter wrote:
>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>> Hi,
>>>
>>> I would like to know, why does libreoffice open up after running in a
>>> terminal "libreoffice --convert-to odt *.doc?
>>>
>> It should not do this. Check your installation again. (E.g:
>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>
>>> What if I want a recursive behaviour?
>>>
>> Try:
>>
>> libreoffice --convert-to odt ./*.doc
>>
> Hi,
>
> 1) Hmm, I didn't understand those links, the errors displayed are these:
>
> javaldx: Could not find a Java Runtime Environment!
>
>
> Warning: failed to read path from javaldx
>
> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
> and ls . or ls ./ is the same.
>
> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
> - $ libreoffice --headless --convert-to odt < file < ls -R
> - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
> - $ libreoffice --headless --convert-to odt $(find . -name "*.docx*")
> --outdir dir/
>
> and it didn't work out...
>
> I know very little Bash and some C. I think a script it's a better idea.
> It has to execute the libreoffice command in each directory so that the
> outdir is "that" directory.
>
> I wish somebody could code it. If not, I will do it myself in the future.
>
> Sincerely,
>
> Ed
>
>
Hi.
What are you trying to achieve.
I have to run a script to convert all older documents on our server to
newer ODF format. I am going to do that by regression into the directory
specified as the parameter to the script when called. I haven't got
round to it yet as it is not required until I update LO, but is that
what you are after.
Steve

--
To unsubscribe e-mail to: [hidden email]
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
gibi33 gibi33
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

On 05/03/2014 20:16, Steve Edmonds wrote:

>
> On 2014-03-06 05:51, Ed_0 wrote:
>> On 05/03/14 10:08, e-letter wrote:
>>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>>> Hi,
>>>>
>>>> I would like to know, why does libreoffice open up after running in a
>>>> terminal "libreoffice --convert-to odt *.doc?
>>>>
>>> It should not do this. Check your installation again. (E.g:
>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html 
>>>
>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html 
>>>
>>>
>>>> What if I want a recursive behaviour?
>>>>
>>> Try:
>>>
>>> libreoffice --convert-to odt ./*.doc
>>>
>> Hi,
>>
>> 1) Hmm, I didn't understand those links, the errors displayed are these:
>>
>> javaldx: Could not find a Java Runtime Environment!
>>
>>
>> Warning: failed to read path from javaldx
>>
>> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
>> and ls . or ls ./ is the same.
>>
>> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>>         - $ libreoffice --headless --convert-to odt < file < ls -R
>>         - $ libreoffice --headless --convert-to odt $(find . -name
>> "*.docx*")
>>         - $ libreoffice --headless --convert-to odt $(find . -name
>> "*.docx*")
>> --outdir dir/
>>
>> and it didn't work out...
>>
>> I know very little Bash and some C. I think a script it's a better idea.
>> It has to execute the libreoffice command in each directory so that the
>> outdir is "that" directory.
>>
>> I wish somebody could code it. If not, I will do it myself in the
>> future.
>>
>> Sincerely,
>>
>> Ed
>>
>>
> Hi.
> What are you trying to achieve.
> I have to run a script to convert all older documents on our server to
> newer ODF format. I am going to do that by regression into the
> directory specified as the parameter to the script when called. I
> haven't got round to it yet as it is not required until I update LO,
> but is that what you are after.
> Steve
>
Another way is to use the wizard in libreoffice (File > Wizards >
Document Converter ) from a PC on the same network than the server and
using a network share.

We used this solution to convert tons of documents in order to avoid CPU
charge on servers that were used for other purposes and it was nice
(only I/O on the servers).
We were able to parallelize tasks with multiple PCs, each one was
dealing with a dedicated sub-directory of the share.

Just my 2 cents.

--
To unsubscribe e-mail to: [hidden email]
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
nabbler nabbler
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by Ed_0
On 05/03/2014, Ed_0 <[hidden email]> wrote:
>
> 1) Hmm, I didn't understand those links, the errors displayed are these:
>
> javaldx: Could not find a Java Runtime Environment!
>
>
> Warning: failed to read path from javaldx
>

You have another problem; activation of hyperlinks doesn't require java...

> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
> and ls . or ls ./ is the same.
>

Depends on the subject; filenames with undesirable characters (e.g. m$
people adding spaces, strokes (/, \) etc.)

--
To unsubscribe e-mail to: [hidden email]
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
Ed_0 Ed_0
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by steveedmonds
On 05/03/14 16:16, Steve Edmonds wrote:

>
> On 2014-03-06 05:51, Ed_0 wrote:
>> On 05/03/14 10:08, e-letter wrote:
>>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>>> Hi,
>>>>
>>>> I would like to know, why does libreoffice open up after running in a
>>>> terminal "libreoffice --convert-to odt *.doc?
>>>>
>>> It should not do this. Check your installation again. (E.g:
>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>>
>>>> What if I want a recursive behaviour?
>>>>
>>> Try:
>>>
>>> libreoffice --convert-to odt ./*.doc
>>>
>> Hi,
>>
>> 1) Hmm, I didn't understand those links, the errors displayed are these:
>>
>> javaldx: Could not find a Java Runtime Environment!
>>
>>
>> Warning: failed to read path from javaldx
>>
>> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
>> and ls . or ls ./ is the same.
>>
>> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>>         - $ libreoffice --headless --convert-to odt < file < ls -R
>>         - $ libreoffice --headless --convert-to odt $(find . -name
>> "*.docx*")
>>         - $ libreoffice --headless --convert-to odt $(find . -name
>> "*.docx*")
>> --outdir dir/
>>
>> and it didn't work out...
>>
>> I know very little Bash and some C. I think a script it's a better idea.
>> It has to execute the libreoffice command in each directory so that the
>> outdir is "that" directory.
>>
>> I wish somebody could code it. If not, I will do it myself in the future.
>>
>> Sincerely,
>>
>> Ed
>>
>>
> Hi.
> What are you trying to achieve.
> I have to run a script to convert all older documents on our server to
> newer ODF format. I am going to do that by regression into the directory
> specified as the parameter to the script when called. I haven't got
> round to it yet as it is not required until I update LO, but is that
> what you are after.
> Steve
>
Hi Steve,

This is what I want: a script or a GUI program (preferably QT 4/5) that
converts doc/x documents with a recursive behaviour so that the files
that are converted didn't go to a special folder, just stay where the
doc/x documents are.

What do you think guys?

I wanted to take code from libreoffice (I suppose it's C) and program
the GUI interface with Python (using pyqt). It is not easy to learn all
this stuff. It took me some years to learn C doing a lot of excercises.

I also wanted to program an advanced string searcher like Super Finder
or like the Window$ XP searcher (Mom says that Window$ XP searcher is
better than the 7 one)

Kind regards,

Ed


--
To unsubscribe e-mail to: [hidden email]
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
Ed_0 Ed_0
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by gibi33
On 05/03/14 20:07, gibi wrote:

> On 05/03/2014 20:16, Steve Edmonds wrote:
>>
>> On 2014-03-06 05:51, Ed_0 wrote:
>>> On 05/03/14 10:08, e-letter wrote:
>>>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>>>> Hi,
>>>>>
>>>>> I would like to know, why does libreoffice open up after running in a
>>>>> terminal "libreoffice --convert-to odt *.doc?
>>>>>
>>>> It should not do this. Check your installation again. (E.g:
>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>>>>
>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>>>
>>>>
>>>>> What if I want a recursive behaviour?
>>>>>
>>>> Try:
>>>>
>>>> libreoffice --convert-to odt ./*.doc
>>>>
>>> Hi,
>>>
>>> 1) Hmm, I didn't understand those links, the errors displayed are these:
>>>
>>> javaldx: Could not find a Java Runtime Environment!
>>>
>>>
>>> Warning: failed to read path from javaldx
>>>
>>> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
>>> and ls . or ls ./ is the same.
>>>
>>> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>>>         - $ libreoffice --headless --convert-to odt < file < ls -R
>>>         - $ libreoffice --headless --convert-to odt $(find . -name
>>> "*.docx*")
>>>         - $ libreoffice --headless --convert-to odt $(find . -name
>>> "*.docx*")
>>> --outdir dir/
>>>
>>> and it didn't work out...
>>>
>>> I know very little Bash and some C. I think a script it's a better idea.
>>> It has to execute the libreoffice command in each directory so that the
>>> outdir is "that" directory.
>>>
>>> I wish somebody could code it. If not, I will do it myself in the
>>> future.
>>>
>>> Sincerely,
>>>
>>> Ed
>>>
>>>
>> Hi.
>> What are you trying to achieve.
>> I have to run a script to convert all older documents on our server to
>> newer ODF format. I am going to do that by regression into the
>> directory specified as the parameter to the script when called. I
>> haven't got round to it yet as it is not required until I update LO,
>> but is that what you are after.
>> Steve
>>
> Another way is to use the wizard in libreoffice (File > Wizards >
> Document Converter ) from a PC on the same network than the server and
> using a network share.
>
> We used this solution to convert tons of documents in order to avoid CPU
> charge on servers that were used for other purposes and it was nice
> (only I/O on the servers).
> We were able to parallelize tasks with multiple PCs, each one was
> dealing with a dedicated sub-directory of the share.
>
> Just my 2 cents.
>

Just tried it.

I found what I was searching.

Thank you!


--
To unsubscribe e-mail to: [hidden email]
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
steveedmonds steveedmonds
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue


On 2014-03-06 14:35, Ed_0 wrote:

> On 05/03/14 20:07, gibi wrote:
>> On 05/03/2014 20:16, Steve Edmonds wrote:
>>> On 2014-03-06 05:51, Ed_0 wrote:
>>>> On 05/03/14 10:08, e-letter wrote:
>>>>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I would like to know, why does libreoffice open up after running in a
>>>>>> terminal "libreoffice --convert-to odt *.doc?
>>>>>>
>>>>> It should not do this. Check your installation again. (E.g:
>>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>>>>>
>>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>>>>
>>>>>
>>>>>> What if I want a recursive behaviour?
>>>>>>
>>>>> Try:
>>>>>
>>>>> libreoffice --convert-to odt ./*.doc
>>>>>
>>>> Hi,
>>>>
>>>> 1) Hmm, I didn't understand those links, the errors displayed are these:
>>>>
>>>> javaldx: Could not find a Java Runtime Environment!
>>>>
>>>>
>>>> Warning: failed to read path from javaldx
>>>>
>>>> 2) I'm not an expert or a sysadmin but I read some books about Linux. ls
>>>> and ls . or ls ./ is the same.
>>>>
>>>> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>>>>          - $ libreoffice --headless --convert-to odt < file < ls -R
>>>>          - $ libreoffice --headless --convert-to odt $(find . -name
>>>> "*.docx*")
>>>>          - $ libreoffice --headless --convert-to odt $(find . -name
>>>> "*.docx*")
>>>> --outdir dir/
>>>>
>>>> and it didn't work out...
>>>>
>>>> I know very little Bash and some C. I think a script it's a better idea.
>>>> It has to execute the libreoffice command in each directory so that the
>>>> outdir is "that" directory.
>>>>
>>>> I wish somebody could code it. If not, I will do it myself in the
>>>> future.
>>>>
>>>> Sincerely,
>>>>
>>>> Ed
>>>>
>>>>
>>> Hi.
>>> What are you trying to achieve.
>>> I have to run a script to convert all older documents on our server to
>>> newer ODF format. I am going to do that by regression into the
>>> directory specified as the parameter to the script when called. I
>>> haven't got round to it yet as it is not required until I update LO,
>>> but is that what you are after.
>>> Steve
>>>
>> Another way is to use the wizard in libreoffice (File > Wizards >
>> Document Converter ) from a PC on the same network than the server and
>> using a network share.
>>
>> We used this solution to convert tons of documents in order to avoid CPU
>> charge on servers that were used for other purposes and it was nice
>> (only I/O on the servers).
>> We were able to parallelize tasks with multiple PCs, each one was
>> dealing with a dedicated sub-directory of the share.
>>
>> Just my 2 cents.
>>
> Just tried it.
>
> I found what I was searching.
>
> Thank you!
>
>
Unfortunately for me it doesn't convert the legacy documents for which
compatibility was discontinued after LO3.7, so I will finish my script.
steve


--
To unsubscribe e-mail to: [hidden email]
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
TomD TomD
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

Hi :)
It is possible to still get earlier versions of LO!  Install in
parallel or into a virtual machine or on a dual-boot or something.
The "in parallel is probably easiest unless you already have another
reason for having a vm or dual-boot.
Regards from
Tom :)

On 6 March 2014 01:51, Steve Edmonds <[hidden email]> wrote:

>
> On 2014-03-06 14:35, Ed_0 wrote:
>>
>> On 05/03/14 20:07, gibi wrote:
>>>
>>> On 05/03/2014 20:16, Steve Edmonds wrote:
>>>>
>>>> On 2014-03-06 05:51, Ed_0 wrote:
>>>>>
>>>>> On 05/03/14 10:08, e-letter wrote:
>>>>>>
>>>>>> On 04/03/2014, Ed_0 <[hidden email]> wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I would like to know, why does libreoffice open up after running in a
>>>>>>> terminal "libreoffice --convert-to odt *.doc?
>>>>>>>
>>>>>> It should not do this. Check your installation again. (E.g:
>>>>>>
>>>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg12280.html
>>>>>>
>>>>>>
>>>>>> http://www.mail-archive.com/users%40global.libreoffice.org/msg33265.html
>>>>>>
>>>>>>
>>>>>>> What if I want a recursive behaviour?
>>>>>>>
>>>>>> Try:
>>>>>>
>>>>>> libreoffice --convert-to odt ./*.doc
>>>>>>
>>>>> Hi,
>>>>>
>>>>> 1) Hmm, I didn't understand those links, the errors displayed are
>>>>> these:
>>>>>
>>>>> javaldx: Could not find a Java Runtime Environment!
>>>>>
>>>>>
>>>>> Warning: failed to read path from javaldx
>>>>>
>>>>> 2) I'm not an expert or a sysadmin but I read some books about Linux.
>>>>> ls
>>>>> and ls . or ls ./ is the same.
>>>>>
>>>>> 3) I tried with - $ libreoffice --headless --convert-to odt $(ls -R)
>>>>>          - $ libreoffice --headless --convert-to odt < file < ls -R
>>>>>          - $ libreoffice --headless --convert-to odt $(find . -name
>>>>> "*.docx*")
>>>>>          - $ libreoffice --headless --convert-to odt $(find . -name
>>>>> "*.docx*")
>>>>> --outdir dir/
>>>>>
>>>>> and it didn't work out...
>>>>>
>>>>> I know very little Bash and some C. I think a script it's a better
>>>>> idea.
>>>>> It has to execute the libreoffice command in each directory so that the
>>>>> outdir is "that" directory.
>>>>>
>>>>> I wish somebody could code it. If not, I will do it myself in the
>>>>> future.
>>>>>
>>>>> Sincerely,
>>>>>
>>>>> Ed
>>>>>
>>>>>
>>>> Hi.
>>>> What are you trying to achieve.
>>>> I have to run a script to convert all older documents on our server to
>>>> newer ODF format. I am going to do that by regression into the
>>>> directory specified as the parameter to the script when called. I
>>>> haven't got round to it yet as it is not required until I update LO,
>>>> but is that what you are after.
>>>> Steve
>>>>
>>> Another way is to use the wizard in libreoffice (File > Wizards >
>>> Document Converter ) from a PC on the same network than the server and
>>> using a network share.
>>>
>>> We used this solution to convert tons of documents in order to avoid CPU
>>> charge on servers that were used for other purposes and it was nice
>>> (only I/O on the servers).
>>> We were able to parallelize tasks with multiple PCs, each one was
>>> dealing with a dedicated sub-directory of the share.
>>>
>>> Just my 2 cents.
>>>
>> Just tried it.
>>
>> I found what I was searching.
>>
>> Thank you!
>>
>>
> Unfortunately for me it doesn't convert the legacy documents for which
> compatibility was discontinued after LO3.7, so I will finish my script.
> steve
>
>
>
> --
> To unsubscribe e-mail to: [hidden email]
> 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

--
To unsubscribe e-mail to: [hidden email]
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

Urmas D. Urmas D.
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by nabbler
"e-letter":

filenames with undesirable characters (e.g. m$
people adding spaces, strokes (/, \) etc.)

Spaces are not 'undesirable characters.' \ and / are both invalid filename
characters in Windows.
All your contribution to this newsgroup is spreading FUD about Microsoft
software.



--
To unsubscribe e-mail to: [hidden email]
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
nabbler nabbler
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

On 09/03/2014, Urmas <[hidden email]> wrote:

> "e-letter":
>
> filenames with undesirable characters (e.g. m$
> people adding spaces, strokes (/, \) etc.)
>
> Spaces are not 'undesirable characters.' \ and / are both invalid filename
> characters in Windows.
> All your contribution to this newsgroup is spreading FUD about Microsoft
> software.
>

Who gives a ... about those desperately trying to maintain profitable m$ shares?

--
To unsubscribe e-mail to: [hidden email]
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
pete nikolic pete nikolic
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by Urmas D.
On Sun, 9 Mar 2014 14:35:50 +0700
"Urmas" <[hidden email]> wrote:

> "e-letter":
>
> filenames with undesirable characters (e.g. m$
> people adding spaces, strokes (/, \) etc.)
>
> Spaces are not 'undesirable characters.' \ and / are both invalid filename
> characters in Windows.
> All your contribution to this newsgroup is spreading FUD about Microsoft
> software.
>
>
>
Are you sure you are not an M$ Corp paid troll you do sound alarmingly like one that
vanished a few years ago i think you may be it re named   ...

Pete



--
Linux 7-of-9 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64
GNU/Linux

--
To unsubscribe e-mail to: [hidden email]
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

pete nikolic pete nikolic
Reply | Threaded
Open this post in threaded view
|

Re: --convert-to issue

In reply to this post by nabbler
On Mon, 10 Mar 2014 13:55:12 +0000
e-letter <[hidden email]> wrote:

> On 09/03/2014, Urmas <[hidden email]> wrote:
> > "e-letter":
> >
> > filenames with undesirable characters (e.g. m$
> > people adding spaces, strokes (/, \) etc.)
> >
> > Spaces are not 'undesirable characters.' \ and / are both invalid filename
> > characters in Windows.
> > All your contribution to this newsgroup is spreading FUD about Microsoft
> > software.
> >
>
> Who gives a ... about those desperately trying to maintain profitable m$ shares?
>


+1

Pete
--
Linux 7-of-9 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64
GNU/Linux

--
To unsubscribe e-mail to: [hidden email]
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