On Thu, 3 Mar 2005, Nishi Prafull wrote:
> I would like to call a perl script(B.pl) within another perl script
> (A.pl). Should I use the following approach or something else?
>
> A.pl
> -
> my $cmd = "perl B.pl"
> system($cmd);
>
> Please let me know.
Is there a reason that A.pl can't jus
then what about thru (``) Backtic or open call ?
Syntax:
1. $x=`ps -ef`;
2. open(fh,"$cmd |");
Regards,
Rathna
On Thu, 3 Mar 2005 16:25:45 -0800, Nishi Prafull <[EMAIL PROTECTED]> wrote:
> Apparently, the first command spawns a new shell when it is executed
> and the control is never returned
Apparently, the first command spawns a new shell when it is executed
and the control is never returned back and hence i cannot get the
second command to get executed.
So I am trying to evaluate the -exec option.
Thanks.
On Thu, 3 Mar 2005 16:14:30 -0800, Wagner, David --- Senior Programmer
Analy
Nishi Prafull wrote:
> Hi:
> Apparently I noticed that when I put both the commands I need to run
> in one script using the system call, the second command does not get
> executed ( I cannot figure out the cause).
They would have to be two separate calls. I used to start 10 to 15
processe
Hi:
Apparently I noticed that when I put both the commands I need to run
in one script using the system call, the second command does not get
executed ( I cannot figure out the cause).
Each of the commands are making out calls to software installed on the
machine to perform specific tasks.
Do I ha
I guess it partly depends on what you are trying to accomplish. Why are
you calling a second script?
-Original Message-
From: Nishi Prafull [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 3:47 PM
To: beginners@perl.org
Subject: call a perl script within another perl script