I am migrating tcl/tk application from Hp Unix to windows.one of tcl/tk script contain following line of statement.

-command {exec ksh -c "$path/startexp.pl http://www.perl.com/down +load.csp" &}

I am calling the tcl scripts using the perl in windows as well as unix.

startexp.pl contain the following code.
-------------------------------

$url = ARGV[0]; if (win32) { system("iexplore $url"); } elseif (hpunix) system("mozilla $url"); }

--------------------------------------------------
1) In windows I am able to open the url using the statement given below .

-command {exec cmd /c "$path/startexp.pl http://www.perl.com/dow +nload.csp" &}
2) In unix I am not able to get the url which I am passing along with startexp.pl
-command {exec ksh -c "$path/startexp.pl http://www.perl.com/down +load.csp" &}

I am not able to find the reason why I could not url when running in unix.

The way I am calling is correct or not?
In unix shall I use ksh -c when script calling using perl.
Is there any alternative to ksh -c ?

Please suggest and help me towards this.

With Regards,
mathi

20050309 Janitored by Corion: Added formatting


In reply to calling the tcl scripts using perl in Hp Unix by Anonymous Monk

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.