ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcltk-perl
tcltk-perl
[tcltk-perl] execute the statement using the "exec ksh -c" in HP UNIX
by M.Srinivasa Rao other posts by this author
Mar 9 2005 6:05AM messages near this date
RE: [tcltk-perl] execute the statement using the "exec ksh -c" i n HP UNIX | [tcltk-perl] what is the equivalent terminal to " ksh -c" in HP-UX
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 ?

Please suggest and help me towards this.

With Regards,
Srinivas.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved