LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 30
php can launch openoffice?


Hello,
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
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
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
PB0711
Member
 
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
Code:
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
tanoatlq
Member
 
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. :-)
 
  


Reply


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
OpenOffice.org QuickStarter - installed it... how do I launch it? Stevetgn Linux - Software 4 09-28-2005 12:22 PM
OpenOffice.org will not launch / start up hfinger Mandriva 2 09-15-2004 12:01 AM
OpenOffice.org 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


All times are GMT -5. The time now is 10:27 PM.

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