I don't know - have you tried a simple fork example?

This has drawbacks in that fork is flaky (emulate) on WIn32 and the original
process won't terminate until the child does or gets killed...

#!/blah... 
use strict;
use warnings;

my $pid=fork();
if ($pid) {
   print STDERR "Parent ($$) got PID $pid from fork()\n"; 
}else{
   open(OUT,">test.txt") or die("Couldn't open test.txt\n");
   print OUT "Some text\n";
   close OUT;
   exit(0);
}
__END__

Kind regards,

Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/


> -----Original Message-----
> From: Finn Harald Rĝed [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 3:33 PM
> To:   Anderson, Mark (Service Delivery)
> Cc:   [EMAIL PROTECTED]
> Subject:      Re: Starting a Perl-script with Win32::Process
> 
> *** WARNING : This message originates from the Internet ***
> 
> Thanks, but I'm afraid that doesn't work either. The process is visible in
> "Process Explorer" (a program from www.sysinternals.com), but not in Task
> Manager. In Process Explorer it says that the thread's state is
> "Wait:WrUserRequest". How do I make it continue...? 
> 
> I don't think the perl-scripts starts at all. A least, the code doesn't
> SEEM to run. It is supposed to create a simple text-file, but nothing
> happens. Also, the code seems to hang / pause etc., so that the browser
> window stays on "opening page..." forever... Looks like it is waiting for
> something to happen, even if the process is actually created and visible
> in Task Manager...? 
> 
> Could it have anything to do with IIS or Windows user rights? The user is
> given read & execute on both cmd.exe and perl.exe. 
> 
> / Finn H
> 
> 
> ----- Original Message ----- 
> From: "Anderson, Mark (Service Delivery)" <[EMAIL PROTECTED]>
> To: "'Finn Harald Rĝed'" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 07, 2004 8:15 AM
> Subject: RE: Starting a Perl-script with Win32::Process
> 
> 
> As a workaround you could use
> 
> system("start /b myscript.pl");
> 
> 
> Kind regards,
> 
> Mark Anderson
> SMS Deployment
> The Royal Bank of Scotland
> 113 Dundas Street, Edinburgh, EH3 5DE
> http://www.manufacturing.rbs.co.uk/GTrswi/
> 
> 
> 
> 
> 


The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 
36 St Andrew Square, Edinburgh EH2 2YB

The Royal Bank of Scotland plc is authorised and regulated by the Financial Services 
Authority and represents The Royal Bank of Scotland Marketing Group. The Bank sells 
life policies, collective investment schemes and pension products and advises only on 
the Marketing Group's range of these products and on a With-Profit Bond produced by 
Norwich Union Life (RBS) Limited.

This e-mail message is confidential and for use by the addressee only. If the message 
is received by anyone other than the addressee, please return the message to the 
sender by replying to it and then delete the message from your computer. Internet 
e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept 
responsibility for changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of viruses, it is 
the responsibility of the recipient to ensure that the onward transmission, opening or 
use of this message and any attachments will not adversely affect its systems or data. 
No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the 
recipient should carry out such virus and other checks as it considers appropriate.


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to