how to exit Powershell when a process is still running?

Shahar Hamuzim Rajuan

I have a powershell script, which start a java application through a batch file.

the powershell doesn't exit because the java (processs) is still running,

I cant use taskkill because I need the java to keep running,

the process is automated with TeamCity so I can't just close the CMD window manually.

Any suggestions?

Shahar Hamuzim Rajuan

At the end i used the Winexe tool, which allows you to start cmd command from Linux to windows machine. and ran the batch with this tool.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is thread still running when the process in "Disk Sleep"?

From Dev

How to determine there are no running jobs or consumer process exit

From Dev

How to detect if a Node spawned process is still running?

From Dev

How to exit the rake task when running timeout?

From Dev

PowerShell 3.0 behavior when getting external process exit code

From Dev

How to check if a forked process is still running from the c program

From Dev

How to make sure that the process is still running so that I can kill it?

From Dev

How to make sure that the process is still running so that I can kill it?

From Dev

How to collect a process outputs (streaming data) while still it's in running

From Dev

Is a process still running after hibernate?

From Dev

How to exit the command stream when running php artisan serve?

From Dev

How to exit terminal with one command when running as root?

From Dev

How to Hide PID and Exit Status When Running a Background Command in Terminal

From Dev

How to wait for running process to complete in perl when running process is not child process?

From Dev

Exit from bash script but keep the process running

From Dev

Exit from bash script but keep the process running

From Dev

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment

From Dev

Why service is still running if its process is killed?

From Dev

Zombie process even though threads are still running

From Dev

Why service is still running if its process is killed?

From Dev

Rotating log files while process still running

From Dev

A process running on Powershell freezes randomly

From Dev

Why do powershell modules not import when running powershell via start process in c#?

From Dev

Run a commandline process and get the output while that process is still running?

From Dev

Erlang: why is my process still running after unregistering process ID?

From Dev

Check if a process started with Process.Start is still running?

From Dev

How can I join the 2nd process which has exited while 1st process is still running?

From Dev

Application is still running in memory after Application.Exit() is called

From Dev

How to prevent grunt process exit?

Related Related

  1. 1

    Is thread still running when the process in "Disk Sleep"?

  2. 2

    How to determine there are no running jobs or consumer process exit

  3. 3

    How to detect if a Node spawned process is still running?

  4. 4

    How to exit the rake task when running timeout?

  5. 5

    PowerShell 3.0 behavior when getting external process exit code

  6. 6

    How to check if a forked process is still running from the c program

  7. 7

    How to make sure that the process is still running so that I can kill it?

  8. 8

    How to make sure that the process is still running so that I can kill it?

  9. 9

    How to collect a process outputs (streaming data) while still it's in running

  10. 10

    Is a process still running after hibernate?

  11. 11

    How to exit the command stream when running php artisan serve?

  12. 12

    How to exit terminal with one command when running as root?

  13. 13

    How to Hide PID and Exit Status When Running a Background Command in Terminal

  14. 14

    How to wait for running process to complete in perl when running process is not child process?

  15. 15

    Exit from bash script but keep the process running

  16. 16

    Exit from bash script but keep the process running

  17. 17

    powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment

  18. 18

    Why service is still running if its process is killed?

  19. 19

    Zombie process even though threads are still running

  20. 20

    Why service is still running if its process is killed?

  21. 21

    Rotating log files while process still running

  22. 22

    A process running on Powershell freezes randomly

  23. 23

    Why do powershell modules not import when running powershell via start process in c#?

  24. 24

    Run a commandline process and get the output while that process is still running?

  25. 25

    Erlang: why is my process still running after unregistering process ID?

  26. 26

    Check if a process started with Process.Start is still running?

  27. 27

    How can I join the 2nd process which has exited while 1st process is still running?

  28. 28

    Application is still running in memory after Application.Exit() is called

  29. 29

    How to prevent grunt process exit?

HotTag

Archive