> > 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)
> >
On 6/2/03 at 2:21 PM, [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');
> 

The file needs to be executable written that way, or just use 
system('perl sendfile.pl ons4jlb');

Use the full path unless . is in @INC

Check $! and/or $? for errors (program and args respectivly...I think :)

Andrew

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

Reply via email to