I've been trying to convert an old command line run perl script to perl/cgi. I've come across a bit of a snag. Part of my script needs to open a ds9 window (it needs to run, but not necessarily be displayed). Apparently this requires a window server to be available for rendering (X11?).
The original script runs flawlessly through a command line on the computer hosting the cgi script.
In my perl cgi script, I have tried to call ds9 using backticks or system commands
(eg
`ds9 -dsssao coord $RA $DEC sexagesimal -catalog save tsv /tmp/tempGS.tsv -quit &`;
This command opens a ds9 window, prints some info to a text file and then closes the ds9 window).
I receive the following errors in my error logs:
'xhost: unable to open display "",
Application initialization failed'
Does anyone know if it is possible to open a window server through a perl cgi script. Any help would be greatly appreciated. Thanks
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.