我有两个python脚本:
#1. getUrl.py # used to collect target urls which takes about 10 mins and used as the input for the next script
#2. monitoring.py # used to monitoring the website.
00 01 * * * /usr/bin/python /ephemeral/monitoring/getUrl.py > /ephemeral/monitoring/input && /usr/bin/python /ephemeral/monitoring/monitoring.py >> /ephemeral/monitoring/output
Run Code Online (Sandbox Code Playgroud)
我把这个命令放在crontab中,想知道我怎么能把那个长命令写成两三行.类似下面的python行分隔符示例,但对于Crontab命令,所以它更具可读性:
>>> print \
... 'hel\
... llo'
helllo
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8131 次 |
最近记录: |