Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-21-2008, 11:21 AM   #1
Registered: Mar 2007
Posts: 157

Rep: Reputation: 30
php can launch openoffice?

I run openoffice impress on a linux box to run as a kiosk that
display slideshows in a loop. This on a remote machine managed
via apache-php from a windows client that upload (previous post)
a PowerPoint file that should replace that is currently displayed.
How can I make this? The system() function in php
cannot launch openoffice, so? There is a way to make openoffice
reopen the same file to change presentation or should I kill it
and how to restart it from a php script? I try with the -display
option but it does not work..
Old 04-21-2008, 04:43 PM   #2
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
not certain by what you mean by system() cannot launch openoffice. The system function just issues a command on the OS so maybe the command that you gave was not quite correct. Another less likely thought is that the linux box is set up so that the user that runs the php script doesn't have the permissions to run open office.

If you google with php and open office then you will get quite a lot of options to follow.
Old 04-21-2008, 08:08 PM   #3
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
I believe doing this would be quite difficult as OO doesn't lend itself to command line options too well. I would first play with the command line and get it to open the presentation you want.
It should be something like
ooimpress /full/PATH/to_your_presentation_file
once that works then I would try the rest ie getting it to run the slide show automatically. Again as 'graemef' said 'system()' should work! All it does is to issue the command.
One more thing check that OO is in your $PATH directory for the user who is going to run OO !
Old 04-22-2008, 12:16 PM   #4
Registered: Mar 2007
Posts: 157

Original Poster
Rep: Reputation: 30
it seems that using a shell script together with sudo and xhost
the problem could be solved. :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice 2.0 is very slow to launch tongliu8 Linux - Software 24 12-24-2010 12:13 PM QuickStarter - installed it... how do I launch it? Stevetgn Linux - Software 4 09-28-2005 12:22 PM will not launch / start up hfinger Mandriva 2 09-15-2004 12:01 AM will not launch hfinger Mandriva 2 11-30-2003 04:47 PM
Can't launch OpenOffice after installing graphic card bcarl314 Linux - Hardware 3 09-25-2003 05:27 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration