14 lines
530 B
PowerShell
14 lines
530 B
PowerShell
# stop-streamlit.ps1
|
|
# Mata solo el proceso python.exe que esta corriendo Streamlit.
|
|
# Preserva otros procesos python.exe que el usuario pueda tener corriendo
|
|
# en paralelo en otros proyectos.
|
|
#
|
|
# Llamado desde AR-House-Stop.vbs.
|
|
|
|
Get-CimInstance Win32_Process -Filter "Name='python.exe'" |
|
|
Where-Object { $_.CommandLine -like '*streamlit*' } |
|
|
ForEach-Object {
|
|
Write-Host "Stopping streamlit PID $($_.ProcessId): $($_.CommandLine)"
|
|
Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue
|
|
}
|