質問編集履歴

6

yo

2019/04/27 12:36

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -3,50 +3,6 @@
3
3
  ```python
4
4
 
5
5
  11 01 * * * /bin/bash /home/attyan22/python_lesson/cron.sh > /var/log/mail.log 2>&
6
-
7
- ```
8
-
9
- Maildir
10
-
11
- ```python
12
-
13
- Return-Path: <attyan22@LAPTOP-SGBTV53C.com>
14
-
15
- X-Original-To: attyan22
16
-
17
- Delivered-To: attyan22@LAPTOP-SGBTV53C.com
18
-
19
- Received: by mx.LAPTOP-SGBTV53C.com (Postfix, from userid 1000)
20
-
21
- id 40DBEF000000060540; Fri, 26 Apr 2019 20:24:01 +0900 (DST)
22
-
23
- From: root@LAPTOP-SGBTV53C.com (Cron Daemon)
24
-
25
- To: attyan22@LAPTOP-SGBTV53C.com
26
-
27
- Subject: Cron <attyan22@LAPTOP-SGBTV53C> /mnt/c/Users/a.sakata/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/home/attyan22/python_lesson/cron.sh > /var/log/mail.log 2>&1
28
-
29
- MIME-Version: 1.0
30
-
31
- Content-Type: text/plain; charset=UTF-8
32
-
33
- Content-Transfer-Encoding: 8bit
34
-
35
- X-Cron-Env: <SHELL=/bin/sh>
36
-
37
- X-Cron-Env: <HOME=/home/attyan22>
38
-
39
- X-Cron-Env: <PATH=/usr/bin:/bin>
40
-
41
- X-Cron-Env: <LOGNAME=attyan22>
42
-
43
- Message-Id: <20190426112401.40DBEF000000060540@mx.LAPTOP-SGBTV53C.com>
44
-
45
- Date: Fri, 26 Apr 2019 20:24:01 +0900 (DST)
46
-
47
-
48
-
49
- /bin/sh: 1: cannot create /var/log/mail.log: Permission denied
50
6
 
51
7
  ```
52
8
 

5

ないy

2019/04/27 12:36

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- status=bounced (maildir delivery failed: create maildir file ~~~~~: Not a directory)(至急)
1
+ cron 自動化(至急)
test CHANGED
@@ -2,27 +2,51 @@
2
2
 
3
3
  ```python
4
4
 
5
- 11 01 * * * /usr/bin/python3 /home/attyan22/python_lesson/hello_time_2.py > /var/log/mail.log 2>&
5
+ 11 01 * * * /bin/bash /home/attyan22/python_lesson/cron.sh > /var/log/mail.log 2>&
6
6
 
7
7
  ```
8
8
 
9
- mail.log
9
+ Maildir
10
10
 
11
11
  ```python
12
12
 
13
- /var/log/mail.log
13
+ Return-Path: <attyan22@LAPTOP-SGBTV53C.com>
14
14
 
15
- Apr 25 01:11:01 LAPTOP-SGBTV53C postfix/cleanup[2252]: A2514430000000B7DC7: message-id=<20190424161101.A2514430000000B7DC7@mail.LAPTOP-SGBTV53C.com>
15
+ X-Original-To: attyan22
16
16
 
17
- Apr 25 01:11:01 LAPTOP-SGBTV53C postfix/bounce[2255]: 675B37F0000000289CE: sender non-delivery notification: A2514430000000B7DC7
17
+ Delivered-To: attyan22@LAPTOP-SGBTV53C.com
18
18
 
19
- Apr 25 01:11:01 LAPTOP-SGBTV53C postfix/qmgr[1219]: A2514430000000B7DC7: from=<>, size=3059, nrcpt=1 (queue active)
19
+ Received: by mx.LAPTOP-SGBTV53C.com (Postfix, from userid 1000)
20
20
 
21
- Apr 25 01:11:01 LAPTOP-SGBTV53C postfix/qmgr[1219]: 675B37F0000000289CE: removed
21
+ id 40DBEF000000060540; Fri, 26 Apr 2019 20:24:01 +0900 (DST)
22
22
 
23
- Apr 25 01:11:01 LAPTOP-SGBTV53C postfix/local[2256]: A2514430000000B7DC7: to=<attyan22@LAPTOP-SGBTV53C.com>, relay=local, delay=0.09, delays=0.01/0.07/0/0.01
23
+ From: root@LAPTOP-SGBTV53C.com (Cron Daemon)
24
24
 
25
- , dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /home/attyan22/Maildir/tmp/1556122261.P2256.LAPTOP-SGBTV53C: Not a directory)
25
+ To: attyan22@LAPTOP-SGBTV53C.com
26
+
27
+ Subject: Cron <attyan22@LAPTOP-SGBTV53C> /mnt/c/Users/a.sakata/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/home/attyan22/python_lesson/cron.sh > /var/log/mail.log 2>&1
28
+
29
+ MIME-Version: 1.0
30
+
31
+ Content-Type: text/plain; charset=UTF-8
32
+
33
+ Content-Transfer-Encoding: 8bit
34
+
35
+ X-Cron-Env: <SHELL=/bin/sh>
36
+
37
+ X-Cron-Env: <HOME=/home/attyan22>
38
+
39
+ X-Cron-Env: <PATH=/usr/bin:/bin>
40
+
41
+ X-Cron-Env: <LOGNAME=attyan22>
42
+
43
+ Message-Id: <20190426112401.40DBEF000000060540@mx.LAPTOP-SGBTV53C.com>
44
+
45
+ Date: Fri, 26 Apr 2019 20:24:01 +0900 (DST)
46
+
47
+
48
+
49
+ /bin/sh: 1: cannot create /var/log/mail.log: Permission denied
26
50
 
27
51
  ```
28
52
 
@@ -36,7 +60,9 @@
36
60
 
37
61
  を下に
38
62
 
63
+
64
+
39
- エラーの理由が分かりません
65
+ 内容おくられないです
40
66
 
41
67
 
42
68
 

4

ないよ

2019/04/26 11:43

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- crontab -e
1
+ crontab -eの中
2
2
 
3
3
  ```python
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  ```
8
8
 
9
- mail.logには
9
+ mail.log
10
10
 
11
11
  ```python
12
12
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  ```
28
28
 
29
- pythonファイル含め全て実行権限あり
29
+ pythonファイル含め全て実行権限あり、
30
30
 
31
31
  postfix ,dovecot ,cron ,rsyslog 全て稼働、ランレベル(2~5)もON
32
32
 
@@ -34,9 +34,9 @@
34
34
 
35
35
  https://qiita.com/mizuki_takahashi/items/1b33e1f679359827c17d
36
36
 
37
- を下に作成しました。
37
+ を下に
38
38
 
39
- エラーの理由をなですか
39
+ エラーの理由が分かりませ
40
40
 
41
41
 
42
42
 

3

だい

2019/04/25 12:34

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- status=bounced (maildir delivery failed: create maildir file ~~~~~: Not a directory)
1
+ status=bounced (maildir delivery failed: create maildir file ~~~~~: Not a directory)(至急)
test CHANGED
File without changes

2

dai

2019/04/25 06:21

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

1

しつもん

2019/04/24 21:56

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  を下に作成しました。
38
38
 
39
- エラーの理由をおしえてください
39
+ エラーの理由をなんですか
40
40
 
41
41
 
42
42