Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
20-windows:50-cygwin:10-crontab [2014/11/13 10:34] – modification externe 127.0.0.1 | 20-windows:50-cygwin:10-crontab [2017/10/06 23:40] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Crontab ====== | ||
+ | |||
+ | ===== Références ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===== Mode d' | ||
+ | |||
+ | Il faut installer les paquets : | ||
+ | * cron | ||
+ | * cygrunsrv | ||
+ | |||
+ | Lancer '' | ||
+ | |||
+ | <code bash> | ||
+ | Roge@HAL ~ | ||
+ | $ 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 | ||
+ | |||
+ | You 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. | ||
+ | To run multiple users, cron must change user context without knowing | ||
+ | the passwords. There are three methods to do that, as explained in | ||
+ | http:// | ||
+ | If all the cron users have executed " | ||
+ | which provides access to network drives, or if you are using the | ||
+ | cyglsa package, then cron should run under the local system account. | ||
+ | Otherwise you need to have or to create a privileged account. | ||
+ | This script will help you do so. | ||
+ | Do you want the cron daemon to run as yourself? (yes/no) no | ||
+ | |||
+ | Were the passwords of all cron users saved with " | ||
+ | are you using the cyglsa package ? (yes/no) no | ||
+ | Attempting to find or create a privileged user. | ||
+ | No privileged account could be found. | ||
+ | This script plans to use the name cyg_server for the new user, | ||
+ | which will only be able to run as a service. | ||
+ | Do you want to use another name (not an interactive account)? (yes/no) no | ||
+ | |||
+ | User cyg_server needs a password. It must match | ||
+ | the rules in force on your system. | ||
+ | Please enter the password for cyg_server: | ||
+ | Reenter: | ||
+ | |||
+ | User ' | ||
+ | If you change the password, please keep in mind to change the | ||
+ | password for the cron service, too. | ||
+ | |||
+ | |||
+ | Running cron_diagnose ... | ||
+ | ... no problem found. | ||
+ | |||
+ | Do you want to start the cron daemon as a service now? (yes/no) yes | ||
+ | OK. The cron daemon is now running. | ||
+ | |||
+ | In case of problem, examine the log file for cron, | ||
+ | <fc # | ||
+ | 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 / | ||
+ | (the file cronbug.txt) to your e-mail. | ||
+ | |||
+ | WARNING: PATH may be set differently under cron than in interactive shells. | ||
+ | Names such as " | ||
+ | |||
+ | </ | ||
+ | |||
+ | Do you want to install the cron daemon as a service? (yes/no) yes | ||
+ | Enter the value of CYGWIN for the daemon: [ ] ntsec | ||
+ | |||
+ | You 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. | ||
+ | To run multiple users, cron must change user context without knowing | ||
+ | the passwords. There are three methods to do that, as explained in | ||
+ | http:// | ||
+ | If all the cron users have executed " | ||
+ | which provides access to network drives, or if you are using the | ||
+ | cyglsa package, then cron should run under the local system account. | ||
+ | Otherwise you need to have or to create a privileged account. | ||
+ | This script will help you do so. | ||
+ | Do you want the cron daemon to run as yourself? (yes/no) no | ||
+ | |||
+ | Were the passwords of all cron users saved with " | ||
+ | are you using the cyglsa package ? (yes/no) no | ||
+ | Attempting to find or create a privileged user. | ||
+ | No privileged account could be found. | ||
+ | This script plans to use the name cyg_server for the new user, | ||
+ | which will only be able to run as a service. | ||
+ | Do you want to use another name (not an interactive account)? (yes/no) no | ||
+ | |||
+ | User cyg_server needs a password. It must match | ||
+ | the rules in force on your system. | ||
+ | Please enter the password for cyg_server: | ||
+ | Reenter: | ||
+ | |||
+ | User ' | ||
+ | If you change the password, please keep in mind to change the | ||
+ | password for the cron service, too. | ||
+ | |||
+ | |||
+ | Running cron_diagnose ... | ||
+ | ... no problem found. | ||
+ | |||
+ | Do you want to start the cron daemon as a service now? (yes/no) <fc # | ||
+ | |||
+ | OK. The cron daemon is now running. | ||
+ | |||
+ | In case of problem, examine the log file for cron, | ||
+ | <fc # | ||
+ | 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 / | ||
+ | (the file cronbug.txt) to your e-mail. | ||
+ | |||
+ | WARNING: PATH may be set differently under cron than in interactive shells. | ||
+ | Names such as " | ||
+ | Installer le service : | ||
+ | |||
+ | '' | ||
+ | |||
+ | Ne jamais éditer directement le fichier / | ||
+ | |||
+ | '' | ||
+ | |||