"King, Jason G" <[EMAIL PROTECTED]> writes:
> Barry writes..
> >Wondering if anybody can help?
> >
> >Out company is porting more and more Unix based perl across to
> >NT 4/2000 and XP and keep running into alarms. Reading the
> >Activestate documentation these just don't seem to be
> >supported and is therefore causing us no end of grief.
> >
> >How do people get around alarms in their code
> I write less robust code. I know it sounds stupid and flippant, but the
> truth of the matter is that without being able to alarm something then
> your code is necessarily less robust. I wouldn't use Perl on Win32 for
> mission critical things where alarming was really required.
Unfortunately, some of us have to base 7x24 code on Win32, because some
hierarch has decreed that Microsoft is the answer (and never mind the
question!)
> NB: I'm not saying that there are no workarounds - just that I don't
> know any reliable ones and hence have adopted the above attitude. Good
> luck in your search.
If the alarm is to time out a spawned process, you could (in theory,
because I've never gotten around to sticking this in my own alarm-ed code):
use Win32::Process;
$po = Win32::Process::Create (...)
$po->Wait (timeout_in_milliseconds)
It looks simple - problem is it's a change in structure from the alarm
model. To time out other things, look into Win32::IPC and its offspring.
Tom Wyant
This communication is for use by the intended recipient and contains
information that may be privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender
by return e-mail and delete this e-mail from your system. Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer. This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.
Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean
http://www.DuPont.com/corp/email_disclaimer.html
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs