⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elf.pl

📁 修改过的log4j代码
💻 PL
字号:
# This script continously renames the $input to $input.$counter,# sleeps for one second, increments $counter and starts over until# $counter reaches $MAX_COUNT.# The script is used for testing the ResilientFileAppender.$input=$ARGV[0];$MAX_COUNT=$ARGV[1];$counter = 0;while($MAX_COUNT > $counter) {  if(!(-e $input)) {     print "File [$input] does not seem to exist. This can happen.\n";  }   elsif(!(-f $input)) {     print "[$input] does not seem to be  file.\n";  }   elsif ( !(-w $input)) {    print "File $input does not seem to be writeeble!!!!\n";  }   else {    print "Renaming $input to $input.$counter\n";    rename $input, $input.$counter;  }         $counter++;  sleep 1;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -