dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.72k stars 1.07k forks source link

FeatureRequest:list the all process that executing and restart someone with current parameter. #18599

Open athinboy opened 3 years ago

athinboy commented 3 years ago

Sorry for my bad english! Maybe there are some ways to do this ,please tell me ,thanks!

Sometimes,Lots of dotnetcore app run in one computer,I need list them by cmd or bash . and when something is changed, I hope restart a dotnetcore app like this :

fff@localhost: nohup  dotnet a.dll aa=11 bb=22 cc=33   > /dev/null 2>&1 &
[1] 16205

fff@localhost: dotnet list-process
16205      nohup  dotnet a.dll aa=11 bb=22 cc=33   > /dev/null 2>&1 &

fff@localhost:  dotnet restart 16205   // I hope kill 16205,and run the bash "nohup  dotnet a.dll aa=11 bb=22 cc=33   > /dev/null 2>&1 &"
19302

Because sometimes,the parameter is to long to remember .

thanks!

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.