On 23 Dec 2002 at 6:22, Rajee Gopinath wrote:

> 
> The DBFTP.pl is a program that we use for others also. Neverthless,
> introducing this code in the calling program is
> something I can consider. However, can I spawn multiple process that would
> FTP each of the file to be accomplsihed ?
> 
> For my requirement, it is important that I be able to FTP multiple files
> parellely.

If it has to be done in parallel, you can always fork inside your own code, 
instead of relying upon a system call. You can do this either by using the fork 
command (recomended), by using the 5.8.0 ithreads (not reccomended) or by 
porting everything to Poe (simulates threading/event driven enviroment).

Granted you would be loosing the ability of using system utilities to keep 
track of things as everything would be happening >inside< the perl process ... 
(fork under win32 uses ithreads internally) ... but it would introduce the 
control you want. 

Otherwise you were on the right track need to looking at the different ways to 
run external programs. Win32::Process being one of them. 

-Chris
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to