Is this a windows system? Try
System('perl sendfile.pl ons4jlb')

Also go to the directory of the source script and from the command line
type sendfile.pl ons3jlb and see if it works. You may have to include
the path. On my system I can't pass anything into a perl script with out
prefixing perl to the beginning. I think it’s 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 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 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'".
>
> Possibilities to explore:
>     Creating a module
>     Capturing output with backticks "`"
>     Perl's 'system' function
>     Creating a UserAgent (look at: LWP::UserAgent, HTTP::Request
> modules)
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to