
shell脚本
.sh脚本常用命令
WX Chen
实用技术总结,前沿科技分享,欢迎交流技术和业务
展开
-
cmd输出日志文件
python app.py >> log/log.txt 2>&1 &Windows上设置定时任务, 执行.bat脚本的内容, 并且输出日志_windows系统定时任务启动脚本为什么不会生成脚本里重定向的日志呢-优快云博客set hour=%time:~0,2%if %hour% LSS 10 (set hour=0%time:~1,1%)set filename=%date:~0,4%%date:~5,2%%date:~8,2%_%hour%%time:~3,2%%time:~6,2%python ap原创 2024-02-15 18:06:13 · 894 阅读 · 0 评论 -
shell常用运算和一些常见bug
常见bug:提示错误[[: not foundLinux shell脚本执行提示错误[[: not foundsh改为bashhttps://blog.youkuaiyun.com/lucykingljj/article/details/48519069shell Syntax error: "(" unexpectedbash xx.sh 或者直接运行 ,sh 与 bash 有些地方不兼容https://blog.youkuaiyun.com/yf210yf/article/details/910662原创 2021-12-02 15:55:41 · 311 阅读 · 0 评论 -
shell脚本命令例子
#!/bin/shFFMPEG=./utils/ffmpeg\ -yFFPROBE=./utils/ffprobeFFMPEG_THREADS=16ori_root='./data/ori_root/'work_root='./data/work_root/'audio_root='./data/audio_root/'split_root='./data/split_root/'texture_root='./data/img/'output_root='./data/output_原创 2021-11-22 20:17:51 · 554 阅读 · 0 评论