Bonjour debian-list, Am 2005-05-23 15:24:57, schrieb debian-list: > Bonjours > > j'aurais aimé savoire si il été possible avec cron de faire que > l'exécution se face toute les 10 secondes? No, il est pas possible, mais... > (sans touché au script au niveau de faire un while et sleep 10) > > une syntax comme: > > */1/1 * * * * root /etc/init.d/all10secondes > > :) voilà je sais que ça passe pas mais se serai un truc comme ça je > pense :) Cree un repertoire: /etc/cron.10sec Install un cronjob __( '/etc/crontab' )__________________________________________________ / | # m h dom mon dow user command | 1 0 * * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily | 5 0 * * 7 root test -e /usr/sbin/anacron || run-parts --report /etc/cron.weekly | 10 0 1 * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.monthly | # | execute cronjob all 60 seconds | * * * * * root /usr/sbin/cron.10sec \______________________________________________________________________ le Script: __( /usr/sbin/cron.10sec )______________________ / | #!/bin/bash | | for COUNT in `seq 5` ; do | run-parts --report /etc/cron.10sec | sleep 10 | done \________________________________________________ Installer ton script en /etc/cron.10sec/script > merci Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature