RE: on warning die



> Hello beginners@xxxxxxxx,
>
> it is possible to setup somewhere, I want my script dies, if
> warning occurs.

BEGIN {
$SIG{__WARN__} = sub{ print STDERR @_; exit 1};
}

warn "I am going to die\n";

I hope you are looking for something like this.

--Ankur


.



Relevant Pages

  • RE: on warning die
    ... >> it is possible to setup somewhere, I want my script dies, if ... >> warning occurs. ... Prev by Date: ...
    (perl.beginners)
  • Windows XP Pro Installation Errors
    ... I have Windows XP Pro when I wanted to reinstall Windows. ... Everything went smoothly when it copied files to install Windows, but when setup started the following errors occured. ... Warning: ... Setup failed to remove the product catalog DXBDA.CAT. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Errors Occured during XP Repair Setup
    ... I have Windows XP Pro when I wanted to reinstall Windows. ... Everything went smoothly when it copied files to install Windows, but when setup started the following errors occured. ... Warning: ... Setup failed to remove the product catalog DXBDA.CAT. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: cpu overheating
    ... This warning comes from the kernel. ... did I setup lm_sensors. ... CPU says it's too hot, ...
    (Fedora)
  • Re: 2005 + Vista, Limited to Workstation on Install
    ... Do you see any warning in System Configuration Check in SQL Server Setup? ... need to install an instance of SQL Server along with Analysis Services, ...
    (microsoft.public.sqlserver.setup)