| View previous topic :: View next topic |
| Author |
Message |
wangxianlg Power User

Joined: 10 Aug 2004 Posts: 67
|
Posted: Thu Mar 23, 2006 12:26 pm Post subject: Start OpenOffice under different user account |
|
|
Hi there,
I am just wondering if anyone could show me how to start OpenOffice services under different user account.
Any help is great appreciated
Alan |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
Posted: Thu Mar 23, 2006 1:19 pm Post subject: Re: Start OpenOffice under different user account |
|
|
| wangxianlg wrote: | | I am just wondering if anyone could show me how to start OpenOffice services under different user account. |
For a *nix system you need a script that starts OOo. And inside that script before you start OOo you switch to a different user account through "su". I guess that should work. But before trying that you should ensure that the different user can start OOo, if you are logged in as that different user.
With kind regards
hol.sten |
|
| Back to top |
|
 |
wangxianlg Power User

Joined: 10 Aug 2004 Posts: 67
|
Posted: Fri Mar 24, 2006 6:45 am Post subject: Sample script |
|
|
Hi there,
I am just wondering if you have the smaple script for Window or Unix I can look at it.
thanks
Alan |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
Posted: Fri Mar 24, 2006 10:04 am Post subject: Re: Sample script |
|
|
| wangxianlg wrote: | | I am just wondering if you have the smaple script for Window or Unix I can look at it. |
| Code: | #! /bin/ksh
OOoCmd=/opt/openoffice.org2.0/program/soffice
OOoAcc="-accept=socket,port=8100,host=localhost\;urp;StarOffice.ServiceManager"
OOoPrm="-headless -norestore -display :1.0"
# Start Xvfb, if there is no X server available or remove the line
/usr/X/bin/Xvfb :1 -screen 0 800x600x16 -fbdir /var/tmp/tempfb &
# Start OOo
$OOoCmd $OOoAcc $OOoPrm |
On *nix this should do the job.
With kind regards
hol.sten |
|
| Back to top |
|
 |
wangxianlg Power User

Joined: 10 Aug 2004 Posts: 67
|
Posted: Fri Mar 24, 2006 10:20 am Post subject: |
|
|
Hi hol.sten,
How about Windows? Cause my web appllication is running on window IIS6.0.
Thanks
Alan |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
Posted: Fri Mar 24, 2006 10:26 am Post subject: |
|
|
| wangxianlg wrote: | | How about Windows? Cause my web appllication is running on window IIS6.0. |
I answered that already in this thread of yours http://www.oooforum.org/forum/viewtopic.phtml?t=33940. All you have to do is put the line in a *.bat file and set the PATH according to your system.
With kind regards
hol.sten |
|
| Back to top |
|
 |
wangxianlg Power User

Joined: 10 Aug 2004 Posts: 67
|
Posted: Fri Mar 24, 2006 10:39 am Post subject: |
|
|
Hi hol.sten,
I just saw that one. Thanks.
I know OpenOffice can't handle multiple instances at same time. I am just wondering if there is any way to limited only one instance of OpenOffice running at a time. I did test on my web application while two users request OpenOffice at same time and OpenOffice will totally mess up and leave the document unfinished.
Thanks
Alan |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
|
| Back to top |
|
 |
|