It's not a question of
nobody being able to execute StarOffice. The
cannot open display error means that when you run the StarOffice macro, it tries to open up a window in XFree. The X session you see on your desktop is owned by your user. However,
nobody does not (and should never) have an X session running, nor the permission to start one. What's the point in an X GUI from a CGI script? If you absolutely must have the functionality you describe from a CGI script, you can set
$ENV{DISPLAY} in your script appropriately (probably to ":0"), and then play around with the
xhosts command from your X session, although this may not even work, I have not messed around extensively with
xhost. If it does end up working, you will probably get a window to pop up on your desktop every time someone hits your CGI script. Is this really what you want?
blokhead
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.