Re: Die without textoutput?
- From: security.department@xxxxxxxx (John Doe)
- Date: Fri, 28 Oct 2005 12:24:13 +0200
J.Peng am Freitag, 28. Oktober 2005 11.27:
> hi,
> you can redefined the $SIG{__DIE__} handle to do that.
> such as:
>
> $SIG{__DIE__}=\&yourdie;
> sub yourdie{
> ...
> die;
> }
Or, to avoid a second die:
chomsky ~/ramsch $ perl -le '$SIG{__DIE__}=sub {exit(1)}; \
die "explore the reason yourself"'
chomsky ~/ramsch $ echo $?
1
# you will have an exit code of 1 instead of die output.
hth, joe
[...]
> > I just want the current process to die without giving any output to
> > screen, something like this:
[...]
.
- Follow-Ups:
- about man page
- From: Bing Zhao
- about man page
- References:
- Die without textoutput?
- From: gustav
- Re: Die without textoutput?
- From: J.Peng
- Die without textoutput?
- Prev by Date: Re: Newbie Help (WinXP)
- Next by Date: about running unix command in perl script
- Previous by thread: Re: Die without textoutput?
- Next by thread: about man page
- Index(es):
Relevant Pages
|