M.Srinivasa Rao wrote:

> 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/download.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/download.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/download.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 ?

Try:
        /bin/sh -c

You could also determine if ksh is a standard shell on your nix and if so,
use the full path to it since it may not be in your path env.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to