Windows Command Prompt:
Open multiple command prompt in one go:
start cmd DIRECTORY1
start cmd DIRECTORY2
Start multiple processes in one go:
start java -jar DIRECTORY1\target\zipkin-service-1-0.0.1-SNAPSHOT.jar
start java -jar DIRECTORY2\target\zipkin-service-2-0.0.1-SNAPSHOT.jar
Find and Kill multiple processes in one go (8081, 8082 are port numbers where server is running):
FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :8081') DO TaskKill.exe /PID %%P
FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :8082') DO TaskKill.exe /PID %%P
Friday, February 19, 2021
Windows commands to start and stop multiple processes
Subscribe to:
Post Comments (Atom)
Thanks for sharing nice article visit Jersey In Java Tutorials
ReplyDelete