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)
signature.pgp
Description: Digital signature

