Changeset 41730 for trunk/ippMonitor/raw/cleanTmpDirectory.php
- Timestamp:
- Jul 29, 2021, 2:53:32 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/cleanTmpDirectory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/cleanTmpDirectory.php
r28608 r41730 14 14 15 15 16 e xec("find /tmp -user apache", $output, $status);16 echo "This function has been deprecated (EAM 2021.07.28)\n"; 17 17 18 echo "<html><body>\n"; 19 echo "Cleaning /tmp file (removing all files belonging to user apache)<br><br>\n"; 20 $count = 0; 21 foreach ($output as $key => $value) { 22 echo "Deleting [$value]<br>\n"; 23 exec("rm -f $value"); 24 $count++; 18 if (0) { 19 exec("find /tmp -user apache", $output, $status); 20 21 echo "<html><body>\n"; 22 echo "Cleaning /tmp file (removing all files belonging to user apache)<br><br>\n"; 23 $count = 0; 24 foreach ($output as $key => $value) { 25 echo "Deleting [$value]<br>\n"; 26 exec("rm -f $value"); 27 $count++; 28 } 29 echo "<br>/tmp cleaned ($count files were deleted)<br>\n"; 25 30 } 26 echo "<br>/tmp cleaned ($count files were deleted)<br>\n";27 31 echo "</body></html>\n"; 28 29 32 30 33 menu_end();
Note:
See TracChangeset
for help on using the changeset viewer.
