代码改变世界

Linux crontab执行bash脚本

2015-10-27 09:34  哦万里云  阅读(741)  评论(0编辑  收藏  举报

需要设置环境,bash文件的开头可以这么写

1 #!/bin/bash
2 . /etc/profile
3 . ~/.bash_profile