Hi all,

I'm trying to create a bridge between two programs.

I understand that the details of passing parameters to a Star Office macro is off topic as far as Perl is concerned, but I'm hoping that there is some Perl-ish way of doing this or that people may of done before when communicating with other programs?

Program I
********

This is a CGI script writen in Perl that uploads files from the users computer (.pdf, .html & .sxw) to the web server and performs numerous checks on the files (titles, META info, etc..) If approved these files are then stored in a directory awaiting processing on the server.

Program II
*********

This is a Star Office 6 macro that takes a directory and a date in the format ddMmmyyyy as run time parameters specified in a user input box, and converts all Star Office 6 (.sxw) files into .ps & .html format saving them back to the same directory.

Here's the cruch part... I want to get program one (Perl) to make the Star Office macro convert all files in a given directory. (So a user does not have to load Star Office everytime, start the macro, specify the directory, wait for the files to convert..)

I need to know how to pass these two parameters (directory and date) to the Star Office Macro so it can run in the back ground on the server converting the files without the web user intervening in any way. Is this possible?

Any insight would be great,

Thanks all

M


In reply to Perl & Star Office Integration by heezy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.