New
#1
System/CMD/PHP writes to $LogFile gets interrupted and never cleans up
Hello
I have potentially stumbled upon a massive problem with php.exe, command prompt and the System process that writes to $Logfile when downloading and saving some stuff.
This is the PHP script i was using https://github.com/K-S-V/Scripts/wiki
There has been past writting, but I have totally reformatted all my other drives and restructured my files (moved around 4 TB around) consolidated partitions and set 32K allocation size on all my HDDs.
So the old stuff is not there, except System Drive C: which is an SSD with Windows 7 x64 ULT.
The script does not have any manual clean stop feature mid-process, only a predetermined timeout command which I don't need to use for what I'm doing, so if i close the command prompt window (because what I was downloading was a live transmission and it didn't stop when it should) the file is never created, to delete what has been written.
I have also tried stopping php.exe but that didn't help, thought CMD has to be open for the System process to create the file if php.exe is done doing it's stuff.
The actual video file with a name and extension is only visible in explorer after the download has completed this means the script has to be successful, all other cases the file is never created in the beginning.
The space taken, is never loosened up, it took about +1 GB I think and I never got that space back, I cleaned the recycler and rebooted and it didn't loose my space on SSD which is ridicolous that I already have slowdowns if I don't have at least 20% free space on there.
I have done this in the past on C: - I think there's more space being eaten up all this time, which is many months. I have notices SSD behaving suspiciously slow.
I have posted this here incase the problem is with CMD and/or Windows components.
If someone wants to recreate this you take latest php for windows (i think i choosen non-thread safe, i had no idea what that means) then get that script, but even when you enable the curl extension in ext folder there's still some dlls missing which I don't understand why they don't put stuff like this with the script, just ask me and i'll UL it since I had a hard time searching for them too.
PS:
Just 2 weeks ago I made my first clonezilla image of my C: drive, still, I really want to take all other options before this one.
EDIT: I can't find the picture of resource monitor showing the logfile being written on among other things.