HEX
Server: Apache
System: Linux viper.innovativeinternet.net 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User: thetradingroom (1095)
PHP: 8.3.25
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //ibin/compress-logs.pl.hold
#!/usr/bin/perl
# Compress Log Files In Current Directory and Erase Log file upon successful completion.

$lgreen = "\033[1;32m";
$white = "\033[0m";

$search_value = "*.com *.net *.org *.cc *.tv *.info";
$log_path = "/var/log/httpd/logs/";
$application = "/ibin/logcompress.pl";


@log_file_array = glob $search_value;
#print @log_file_array;

  foreach $array_record (@log_file_array) {


print $lgreen . "-----[ Working On: " .$array_record . " ]----------------------------------------------------------$white\n";
#system( "cd " . $log_path . $array_record . "&&" . $application . "\n");
print "cd " . $log_path . $array_record . "&&" . $application . "\n";

  }

exit;