質問編集履歴
2
見やすくした
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
①自宅CentOS環境
|
6
|
-
|
7
|
-
--------------
|
8
6
|
|
9
7
|
-bash-4.2$ ps aux | grep test.sh
|
10
8
|
|
@@ -14,11 +12,9 @@
|
|
14
12
|
|
15
13
|
root 100617 0.0 0.0 112720 988 pts/1 R+ 17:56 0:00 grep --color=auto test.sh
|
16
14
|
|
17
|
-
|
15
|
+
|
18
16
|
|
19
17
|
②業務Redhat環境(crontab起動したプロセスに-cがついて、3番目のプロセスが1つ増えている)
|
20
|
-
|
21
|
-
--------------
|
22
18
|
|
23
19
|
-bash-4.2$ ps aux | grep test.sh
|
24
20
|
|
@@ -29,8 +25,6 @@
|
|
29
25
|
root 100529 0.0 0.0 113172 693 ? S 17:56 0:00 /bin/sh /root/test.sh
|
30
26
|
|
31
27
|
root 100617 0.0 0.0 112720 988 pts/1 R+ 17:56 0:00 grep --color=auto test.sh
|
32
|
-
|
33
|
-
--------------
|
34
28
|
|
35
29
|
|
36
30
|
|
@@ -43,8 +37,6 @@
|
|
43
37
|
ループしているものです。
|
44
38
|
|
45
39
|
|
46
|
-
|
47
|
-
#!/bin/sh
|
48
40
|
|
49
41
|
SLEEP_SEC=5
|
50
42
|
|
1
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|