Re: Die without textoutput?



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:
[...]
.



Relevant Pages

  • Re: Elderly at Risk of Memory Problems After Surgery
    ... She actually did die within a year of the surgery, ... One hopes to avoid such a fall -- knock on ... I'm in the game for quality, ... life is a splendid adventure. ...
    (soc.senior.issues)
  • Re: What Happened Before the Big Bang?
    ... It appears to be a cyclic model but each cycle is different from the ... If they can conjure and avoid whatever ideas they like then why the hell ... Magical explanations are of no use ... People die, animals die, love dies, stars die.... ...
    (talk.atheism)
  • Re: Count the Teeth
    ... You throw one die on a table and it shows one pip. ... all you have to avoid is the side with 6 pips to avoid a 7. ... with the dart board, both A and B have one-sixth of the board painted ...
    (rec.gambling.craps)
  • Internet Security Policy
    ... If you walk on the road, a speeding car might hit you and you may die. ... Will you lock ... yourself indoors to avoid that? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Evaluating References in Code [Long]
    ... references. ... malfunction. ... Your code will die, before you even get to check IsBroken. ... To avoid this problem, you have to qualify every item that you use in ...
    (comp.databases.ms-access)