zoukankan
html css js c++ java
contab路径问题(脚本调用另一个文件)
问题描述
当在定时任务里,要执行一个脚本A,然后A脚本需要调用另一个文件B,此时定时任务执行不成功,会报错找不到文件
解决办法
先cd到放执行脚本的路径,这样就在定时任务的脚本里可以调用相对路径下的文件了
*/
1
* * * * cd /data/lile; /usr/bin/python3 monthly.py >/var/log/monthly_log
2
>&
1
查看全文
相关阅读:
Spring restful
LDAP & Implementation
Restful levels and Hateoas
事务隔离的级别
servlet injection analysis
session and cookie
write RE validation
hello2 source analysis
匿名函数和递归函数
生成器和迭代器,列表推导式
原文地址:https://www.cnblogs.com/lemon-le/p/11558990.html
最新文章
Java Design Patterns
Connector for Python
spring reference
初识ldap
HATEOAS约束
RESTFUL架构
Analysis servlet
隔离级别
connector for python
spring
热门文章
LDAP&implementation
HATEOAS
Analysis servlet
隔离级别
session and cookie
hello2
正则表达式
filter in servlet
Connector for Python
code
Copyright © 2011-2022 走看看