List Info

Thread: return values between perl and tcl




return values between perl and tcl
country flaguser name
United States
2007-02-14 09:35:48
Hi there,

there is a problem with tcl and perl...
i hope you could help me solfing it...


i have a perl script...
this script starts a tcl script...

the tcl script should give values back to the perl
script...


is that possible???
and how??? (some examples???)


Thanks 4 help

Andy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl Programming" group.
To post to this group, send email to perl-programminggooglegroups.com
To unsubscribe from this group, send email to
perl-programming-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/perl-programming
-~----------~----~----~----~------~----~------~--~---


Re: return values between perl and tcl
country flaguser name
United States
2007-04-04 06:27:06
Andy1407 wrote:
>
> i have a perl script...
> this script starts a tcl script...
>
> the tcl script should give values back to the perl
script...
>
> is that possible???
> and how??? (some examples???)
>

in perl script:

tcl_output = `/path/to/tclscript.tcl`;

whatever is the output of the tcl script is captured in the
array
tcl_output

if you want to capture only the exit code returned from your
tcl
script, then:

command_to_run = ("/path/to/tclscript.tcl",
"arg1", "arg2");
system (command_to_run);

then use the $? variable to check what happened with that
script

cheers
yogesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl Programming" group.
To post to this group, send email to perl-programminggooglegroups.com
To unsubscribe from this group, send email to
perl-programming-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/perl-programming
-~----------~----~----~----~------~----~------~--~---


Re: return values between perl and tcl
user name
2007-04-09 00:17:31
what you need to do is

write ur tcl code to produce o/p which ur perl code can understand
eg.  if  ur tcl code  is supposed to  return you you  value of age, name and  gender
op of tcl script can be like
"age=21
name=andy
gender=male"


now ur perl scipt can capture this op in the way yogesh said and
parse this op to produce hash array

and do what  u want to  do  with this  data structure 

 

On 4/4/07, Yogesh Sawant < y.sawantgmail.com">y.sawantgmail.com> wrote:

Andy1407 wrote:
>;
> i have a perl script...
> this script starts a tcl script...
>
> the tcl script should give values back to the perl script...
>
> is that possible???
> and how??? (some examples???)
>

in perl script:

tcl_output = `/path/to/tclscript.tcl`;

whatever is the output of the tcl script is captured in the array
tcl_output

if you want to capture only the exit code returned from your tcl
script, then:

command_to_run = ("/path/to/tclscript.tcl&quot;, "arg1", "arg2");
system (command_to_run);

then use the $? variable to check what happened with that script

cheers
yogesh





--
Regards
Sharad Pisal
Starcom Software Pvt. Ltd.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Perl Programming" group.
To post to this group, send email to perl-programminggooglegroups.com
To unsubscribe from this group, send email to perl-programming-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/perl-programming
-~----------~----~----~----~------~----~------~--~---

To get Windows Logon to be sent to PERL application
country flaguser name
Malaysia
2007-05-26 23:36:37

Hi all,

 

Currently I’m using Win Server 2003 with IIS 6 and ActivePERL Version 5.6.1.631. The server are configured with Active Directory. My question is how do I get which AD logon who trying to access my application for authenticate the AD account into the application?

 

Thanks  &; Regards

-hmszam

Hairunizam Mohamed Salleh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Perl Programming" group.
To post to this group, send email to perl-programminggooglegroups.com
To unsubscribe from this group, send email to perl-programming-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/perl-programming
-~----------~----~----~----~------~----~------~--~---
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )