본문 바로가기

System4

[Windows] 프로세스 카운트 및 종료 1234567891011121314151617181920@echo offsetlocal  :: DP_MES_L3.exe 프로세스 개수 확인wmic process get CommandLine, handle, executablepath /format:csv | find /v "find.exe" | find /C "DP_MES_L3.exe" > count.txtset /p count=count.txtdel count.txt  :: 프로세스가 실행 중이면 종료if %count% GTR 0 (    echo DP_MES_L3.exe 실행 중 → 종료합니다.    taskkill /F /IM DP_MES_L3.exe) else (    echo DP_MES_L3.exe 실행 중이지 않음.)  endlocalColo.. 2022. 3. 3.
[csh] 경로 설정 및 폴더 생성 경로를 명령어를 통해서 확인하고해당 경로에 현재 생성하려는 폴더가 존재하지않으면 폴더를 생성함.1234567if(! -d os_info) then     mkdir os_infoendif set os = ‘uname’set os_pwd = ‘pwd’set tmp = “$os_pwd/os_info” 2021. 5. 14.
[OS, Windows] Windows cmd 명령어 (시스템 정보 추출) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162// hostnamewmic cpu get systemname // modelwmic csproduct get name // serialwmic bios get serialnumber // oswmic os get name // os versionwmic os get version // os bitwmic os get osarchitecture // cpu ghzwmic cpu get name // real memory totalwmic computersystem get totalphysicalmemo.. 2021. 5. 3.
[OS, HP-UX] HP-UX 명령어 (시스템 정보 추출) 123456789101112//os, cpu 기본정보/usr/contrib/bin/machinfo  //정보 얻을 수 있는 명령어/etc/landcan (MAC Address)glance (CPU 사용)netstat -r (IP Address)  //하드디스크 정보 출력/usr/sbin/ioscan -fknC disk |grep disk |grep -v “NO_HW” |grep -v “CD-ROM” |grep -v “DVD-ROM” |wc -lcs 2021. 4. 20.