Ricky

链接

RSS

RSS Link
主机模拟终端中粘贴后自动移动光标到粘贴内容结尾
Vim中匹配中文

配置Cygwin的cron

Ricky posted @ 2013年8月01日 13:11 in Other , 1738 阅读
$ cron-config
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ] ntsec
Do you want the cron daemon to run as yourself? (yes/no) yes
Please enter the password for user 'Administrator':键入密码
Reenter:再次键入密码

配置完成后

安装Cron服务
cygrunsrv -I Cron -p /usr/sbin/cron -a -n
cygrunsrv -I Cygserver -p /usr/sbin/cygserver -e "CYGWIN=server"
安装cygwserver使不运行Cygwin也能在后台定时执行
cron中定义的脚本或者命令

启动cron:
cygrunsrv -S Cron

cygrunsrv -S Cygserver

卸载服务

cygrunsrv -R Cron
本中涉及文件路径时写全局路径
脚本执行要用到java或其他环境变量时,通过source命令引入环境变量

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter