config cygwin

来源:互联网 发布:web数据挖掘 bing liu 编辑:程序博客网 时间:2024/06/18 07:04
config cygwin cron$ which cron-config/usr/bin/cron-config$ cron-configDo you want to install the cron daemon as a service? (yes/no) yesEnter the value of CYGWIN for the daemon: [ ] Cygwin CronERROR: Only "[no]ntsec" "[no]smbntsec" "[no]traverse" allowed.Enter the value of CYGWIN for the daemon: [ ] ntsecYou must decide under what account the cron daemon will run.If you are the only user on this machine, the daemon can run as yourself. This gives access to all network drives but only allows you as user.Otherwise cron should run under the local system account. It will be capable of changing to other users without requiring a password, using one of the three methods detailed in http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1Do you want the cron daemon to run as yourself? (yes/no) noRunning cron_diagnose ...... no problem found.INFO: A cron daemon is already running.In case of problem, examine the log file for cron,/var/log/cron.log, and the Windows event log (using /usr/bin/cronevents)for information about the problem cron is having.Examine also any cron.log file in the HOME directory(or the file specified in MAILTO) and cron related files in /tmp.If you cannot fix the problem, then report it to cygwin@cygwin.com.Please run the script /usr/bin/cronbug and ATTACH its output(the file cronbug.txt) to your e-mail.WARNING: PATH may be set differently under cron than in interactive shells. Names such as "find" and "date" may refer to Windows programs.$ cygrunsrv -R "Cron daemon"cygrunsrv: Error removing a service: OpenService: Win32 error 1060:The specified service does not exist as an installed service.$ cygrunsrv -R cron$ cron-configDo you want to install the cron daemon as a service? (yes/no) yesEnter the value of CYGWIN for the daemon: [ ] ntsecYou must decide under what account the cron daemon will run.If you are the only user on this machine, the daemon can run as yourself. This gives access to all network drives but only allows you as user.Otherwise cron should run under the local system account. It will be capable of changing to other users without requiring a password, using one of the three methods detailed in http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1Do you want the cron daemon to run as yourself? (yes/no) yesPlease enter the password for user 'liqy': Reenter: Running cron_diagnose ...... no problem found.INFO: A cron daemon is already running.In case of problem, examine the log file for cron,/var/log/cron.log, and the Windows event log (using /usr/bin/cronevents)for information about the problem cron is having.Examine also any cron.log file in the HOME directory(or the file specified in MAILTO) and cron related files in /tmp.If you cannot fix the problem, then report it to cygwin@cygwin.com.Please run the script /usr/bin/cronbug and ATTACH its output(the file cronbug.txt) to your e-mail.WARNING: PATH may be set differently under cron than in interactive shells. Names such as "find" and "date" may refer to Windows programs.$ cat /var/log/cron.log/usr/sbin/cron: can't lock /var/run/cron.pid, otherpid may be 4428: Resource temporarily unavailable/usr/sbin/cron: can't lock /var/run/cron.pid, otherpid may be 4428: Resource temporarily unavailable$ ps -ef |grep 4428 SYSTEM 4428 1 ? 13:46:40 /usr/sbin/cron$ > /var/log/cron.log$ cat /var/log/cron.log$ crontab -l# DO NOT EDIT THIS FILE - edit the master and reinstall.# (t.cron installed on Mon Jun 21 13:41:56 2010)# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)* * * * * date>>t.log$ pwd/home/liqy$ cat t.logMon Jun 21 13:47:02 MPST 2010Mon Jun 21 13:48:02 MPST 2010Mon Jun 21 13:49:02 MPST 2010Mon Jun 21 13:50:03 MPST 2010Mon Jun 21 13:51:03 MPST 2010Mon Jun 21 13:52:02 MPST 2010Mon Jun 21 13:53:02 MPST 2010Mon Jun 21 13:54:02 MPST 2010Mon Jun 21 13:55:02 MPST 2010
0 0
原创粉丝点击