Hi Perlers
I found the slution of my problem.................to share with u may be
in case somebody needs tht stuff sometime so I am
giving u just one link
http://www.freewebz.com/eq-forecasting/Perl.html#ROUTINES_WHICH_ARE_STILL_NEEDED

and see under heading "Start An External Program Running From Within A
Perl Program"


with thankX



n



warm regards




Mayank Ahuja
Team Member
Tata Consultancy Services Limited
Ph:- 044-55555816
Cell:- 9283199460
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



Chris Devers <[EMAIL PROTECTED]>
10/05/2005 12:21 AM
Please respond to
Perl Beginners List <beginners@perl.org>


To
Dan Klose <[EMAIL PROTECTED]>
cc
Perl Beginners List <beginners@perl.org>, [EMAIL PROTECTED]
Subject
Re: regd. executing one perl file inside another perl file






On Tue, 4 Oct 2005, Dan Klose wrote:

> If I have a script, in my case on my linux machine, and I want to run
> that script using another script then I use the `` however you can use:
>
> #!/usr/bin/perl
>
> system("./my-script <input>")

Why on earth would you do that?

> #!/usr/bin/perl
>
> `./my_script1 input1`;
> `./my_script2 output_of_script_1`;
> `./my_script3 output_of_script_2`;

I repeat: why on earth would you do that?

  #!/bin/sh
  cd /some/dir
  ./my-script1 input1 | ./my-script2 | ./my-script3

Perl is great and all, but sometimes it's no substitute for a two line
shell script. :-)


--
Chris Devers

CHï/É?JgçÉ|þ
ForwardSourceID:NT0000BFBE


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to