| 12345678910111213141516171819202122 |
- $ErrorActionPreference = "SilentlyContinue"
- # Check the fs-company startup log for his controller registration
- $logFile = "d:\ylrz\ylrz_saas_his_scrm\fs-company\target\fs-company.jar"
- # The process is running, let's check its output
- # Alternative: search for his controller mapping in the process command line
- $proc = Get-Process -Id 5372 -ErrorAction SilentlyContinue
- if ($proc) {
- Write-Output "Process 5372 command line:"
- Get-CimInstance Win32_Process -Filter "ProcessId = 5372" | Select-Object CommandLine | Format-List
- }
- # Also check if the his controllers are in the jar
- $jarPath = "d:\ylrz\ylrz_saas_his_scrm\fs-company\target\fs-company.jar"
- Write-Output "Checking if FsStoreController is in the jar..."
- $tempDir = "$env:TEMP\jar_check"
- New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
- Copy-Item $jarPath "$tempDir\check.jar" -Force
- Set-Location $tempDir
- jar tf check.jar 2>$null | Select-String "his/controller/FsStoreController" | Select-Object -First 5
- Write-Output "Done"
|