Skip to content

Commit 62b5214

Browse files
committed
优化node进程的获取
1 parent 4509a69 commit 62b5214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get_processes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
ps -e -o pid,command | grep $1 | grep -v grep
3+
ps -e -o pid,command | grep "$1 " | grep -v get_processes | grep -v grep

0 commit comments

Comments
 (0)