README.md 762 Bytes
Newer Older
wangkx1's avatar
wangkx1 committed
1
2
# Continue_Plan

wangkx1's avatar
wangkx1 committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
本工程主要目的是实现一个工具, 减少以往琐碎性工作。

设计:

bash notify_attention.sh


脚本内容可能如下:


1. C++或者Python实现一个可执行文件; exe
2. exe init "task.path" 
3. exe add "abc"
4. exe remove "abc"
5. exe cat task
5. exe notify "path" "time"   文件存在就通知邮件, 过期不存在酒;
6. exe update today
7. exe goodnight 



```bash
#!/bin/bash


python download_model.py
touch finished
if [ -e "/path/to/your/file" ]; then
    bash notify_attention.sh "finished download model."  
else
    bash notify_attention.sh "unfinished download-model task, please be aware."  
fi



```


- notify_attention.sh 脚本实现自动加入screen后台; 任务完成后发邮件通知自己;