Perl
Add to code :
$SIG{'INT'} = 'IGNORE';
Shell scripts
Add to code :
trap "" 1 2 3 15
Add to code :
$SIG{'INT'} = 'IGNORE';
Shell scripts
Add to code :
trap "" 1 2 3 15
Better be a 'GEEK' than an 'IDIOT'
my $logging=1
if($logging){open FILE , ">>./my.log";}At the latest possible time, close the logfileif($logging){close FILE};Don'tsub logit{
if ($logging){
print FILE "$_[0]\n";
}
}Itmy $logging=1
if($logging){open FILE , ">>./my.log";}At the latest possible time, close the logfileif($logging){close FILE};Don'tsub logit{
if ($logging){
print FILE "$_[0]\n";
}
}It