Hi,
I'm developing a cgi script with perl and I want to call another perl
script from this one.
How can I do that?
Regards,
João Bonina
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina) wrote:
Hi,
I'm developing a cgi script with perl and I want to call another perl
script from this one.
How can I do that?
Lots of ways you *could* do it. How *should* you? In Maine we have a
saying, Hard tellin' not knowin'.
Well, I've tried the system function, but it isn't executing the script
which is located in the same directory...
I'm using it this way :
system('sendfile.pl ons4jlb');
On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina) wrote:
Hi,
I'm developing a cgi script with perl and I
to the beginning. I think its a windows thing.
Paul
-Original Message-
From: João Luís Bonina [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 8:22 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Calling a perl script from another perl script
Well, I've tried the system
]
Cc: [EMAIL PROTECTED]
Subject: Re: Calling a perl script from another perl script
Well, I've tried the system function, but it isn't executing the script
which is located in the same directory...
I'm using it this way :
system('sendfile.pl ons4jlb');
On 6/2/03 at 1:49 PM, [EMAIL
On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina)
wrote:
Hi,
I'm developing a cgi script with perl and I want to call another
perl script from this one.
How can I do that?
Lots of ways you *could* do it. How *should* you? In Maine we have a
saying, Hard tellin'
On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João
luís bonina) wrote:
Well, I've tried the system function, but it isn't executing the script
which is located in the same directory...
I'm using it this way :
system('sendfile.pl ons4jlb');
If you havn't found an answer
] [mailto:[EMAIL PROTECTED] On Behalf Of
zentara
Sent: Monday, June 02, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Calling a perl script from another perl script
On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João
luís bonina) wrote:
Well, I've tried the system function, but it isn't
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
zentara Sent: Monday, June 02, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Calling a perl script from another perl script
On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João
luís bonina) wrote
Jeff == Jeff Westman [EMAIL PROTECTED] writes:
Jeff It's not that I am resistant. Both scripts are used by other processes
Jeff (called from shell scripts, not perl scripts), so it is pointless to add it
Jeff as a sub-routine, otherwise that would be the ideal method I think.
In that case,
This seems simple enough I have two separate, independent perl scripts.
I want to call one perl script from the other script.
I know I can do this with a system call (or backticks). Is there a better
way? If not, what is the preferred method? (I don't want to make one a sub
routine of the
If you just wanted to use the other script and not return, look
at exec:
% perldoc -f exec
simran.
On Thu, 2003-02-13 at 09:45, Jeff Westman wrote:
This seems simple enough I have two separate, independent perl scripts.
I want to call one perl script from the other script.
I know I
Good point, thanks for the info. That might be the choice I go with.
--- simran [EMAIL PROTECTED] wrote:
If you just wanted to use the other script and not return, look
at exec:
% perldoc -f exec
simran.
On Thu, 2003-02-13 at 09:45, Jeff Westman wrote:
This seems simple
--- Wiggins d'Anconia [EMAIL PROTECTED] wrote:
Jeff Westman wrote:
This seems simple enough I have two separate, independent perl
scripts.
I want to call one perl script from the other script.
Sometimes it just is that simple :-).
I guess I am thinking in terms of the overhead
You might want to take a look at do(). It's like require or eval, sort
of. Maybe just what you were looking for. :)
--- Jeff Westman [EMAIL PROTECTED] wrote:
--- Wiggins d'Anconia [EMAIL PROTECTED] wrote:
Jeff Westman wrote:
This seems simple enough I have two separate, independent
Hubert Ian M. Tabug wrote:
Hi,
Given that I have a perl script main.pl, and I want main.pl to use/call
the script testprog.pl, and store testprog.pl's output into a variable that can be
used within main.pl. How do I go about doing it? Your help would be greatly
appreciated.
-
From: Hubert Ian M. Tabug [EMAIL PROTECTED]
To: Perl [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 2:15 PM
Subject: Calling a perl script with a perl script
Hi,
Given that I have a perl script main.pl, and I want main.pl to
use/call the script testprog.pl, and store testprog.pl's
17 matches
Mail list logo