Le lundi 23 mai 2005 à 16:21 +0200, Michelle Konzack a écrit : > 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 > eu sa c'est bien joué :) merci nikel je testerai plus tard mais c'est pas bete :) merci > Greetings > Michelle >
-- Pensez �ire la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Pensez �ajouter le mot ``spam'' dans vos champs "From" et "Reply-To:" To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]