OVH Cloud OVH Cloud

crontab toute les 10 secondes?

10 réponses
Avatar
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?
(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 :)

merci


--
Pensez

10 réponses

Avatar
Michelle Konzack
--2Z2K0IlrPCVsbNpk
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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)

--2Z2K0IlrPCVsbNpk
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCkecHC0FPBMSS+BIRAg1gAKCnlWyW8WZE7gDylTf3Zyuedx5UUwCdFBQC
7tpwrIN4z4tJ11suUnR98+c =3lNt
-----END PGP SIGNATURE-----

--2Z2K0IlrPCVsbNpk--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
debian-list
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
Avatar
debian-list
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




hum... sa ne marche pas :s c'est bizzard!!!

je fais un run-parts --report /etc/cron.seconds

mon script et bien executable dans /etc/cron.seconds mais il ne se lance
pas :s c'est bizzard?
> merci

Greetings
Michelle





--
Pensez
Avatar
Michelle Konzack
--wRtZRu2mMGBZ6YQ7
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2005-05-23 16:38:03, schrieb debian-list:
Le lundi 23 mai 2005 à 16:21 +0200, Michelle Konzack a écrit :



> __( /usr/sbin/cron.10sec )______________________
> /
> | #!/bin/bash
> |
> | for COUNT in `seq 5` ; do
> | run-parts --report /etc/cron.10sec
> | sleep 10
> | done
> ________________________________________________



eu sa c'est bien joué :) merci nikel je testerai plus tard mais c'est
pas bete :) merci



Un petite correcture:

__( /usr/sbin/cron.10sec )______________________
/
| #!/bin/bash
|
| for COUNT in `seq 5` ; do
| run-parts --report /etc/cron.10sec &
| disown
| sleep 10
| done
________________________________________________

Si 'run-parts' faire un delay avec l'execution,
tu as de problems...

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)

--wRtZRu2mMGBZ6YQ7
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCkfFCC0FPBMSS+BIRAqkwAJ9lkzPIj/lgJRDwdM7lRWYHlP2y0wCghHce
B5NrhoOmviNghYC/iSoaJbY ÛqC
-----END PGP SIGNATURE-----

--wRtZRu2mMGBZ6YQ7--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
debian-list
Le lundi 23 mai 2005 à 17:05 +0200, Michelle Konzack a écrit :
Am 2005-05-23 16:38:03, schrieb debian-list:
> Le lundi 23 mai 2005 à 16:21 +0200, Michelle Konzack a écrit :

> > __( /usr/sbin/cron.10sec )______________________
> > /
> > | #!/bin/bash
> > |
> > | for COUNT in `seq 5` ; do
> > | run-parts --report /etc/cron.10sec
> > | sleep 10
> > | done
> > ________________________________________________

> eu sa c'est bien joué :) merci nikel je testerai plus tard mais c'est
> pas bete :) merci

Un petite correcture:

__( /usr/sbin/cron.10sec )______________________
/
| #!/bin/bash
|
| for COUNT in `seq 5` ; do
| run-parts --report /etc/cron.10sec &
| disown
| sleep 10
| done
________________________________________________

Si 'run-parts' faire un delay avec l'execution,
tu as de problems...


je test :)

Greetings
Michelle





--
Pensez
Avatar
Michelle Konzack
--/rDaUNvWv5XYRSKj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2005-05-23 16:56:35, schrieb debian-list:

hum... sa ne marche pas :s c'est bizzard!!!

je fais un run-parts --report /etc/cron.seconds

mon script et bien executable dans /etc/cron.seconds mais il ne se lance
pas :s c'est bizzard?



Esseyer
run-parts --verbose --test --report /etc/cron.seconds

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)

--/rDaUNvWv5XYRSKj
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCkfKkC0FPBMSS+BIRAs5pAJ9eV++9DJ8eGqg6Tt3JXA4mhUZO0QCgoE2I
afrGwAkh5xyCkOknf9hcWZU =HtmR
-----END PGP SIGNATURE-----

--/rDaUNvWv5XYRSKj--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
debian-list
Le lundi 23 mai 2005 à 17:11 +0200, Michelle Konzack a écrit :
Am 2005-05-23 16:56:35, schrieb debian-list:

> hum... sa ne marche pas :s c'est bizzard!!!
>
> je fais un run-parts --report /etc/cron.seconds
>
> mon script et bien executable dans /etc/cron.seconds mais il ne se lance
> pas :s c'est bizzard?

Esseyer
run-parts --verbose --test --report /etc/cron.seconds


il n'affiche rien :s donc c'est que rien n'est executé?

:s je sais pas pourquoi :s vous avez une idée?

Greetings
Michelle





--
Pensez
Avatar
Michelle Konzack
--bZ2MuwyI/0uB8yuJ
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2005-05-23 17:15:27, schrieb debian-list:
Le lundi 23 mai 2005 à 17:11 +0200, Michelle Konzack a écrit :
> Am 2005-05-23 16:56:35, schrieb debian-list:
>
> > hum... sa ne marche pas :s c'est bizzard!!!
> >
> > je fais un run-parts --report /etc/cron.seconds
> >
> > mon script et bien executable dans /etc/cron.seconds mais il ne se la nce
> > pas :s c'est bizzard?
>
> Esseyer
> run-parts --verbose --test --report /etc/cron.seconds
il n'affiche rien :s donc c'est que rien n'est executé?



Exact ! - Quel est le nome de Script ?

Mais il est bizzar, parce que chez moi ça marche.

:s je sais pas pourquoi :s vous avez une idée?



man crontab :-D

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)

--bZ2MuwyI/0uB8yuJ
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCkfXHC0FPBMSS+BIRApXwAKDI0nAtPC5wqUIfihfwmnhmVyZd3gCgtcff
DJzQwC+K0R6xCWd97Nsp120 =5ObT
-----END PGP SIGNATURE-----

--bZ2MuwyI/0uB8yuJ--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
debian-list
Le lundi 23 mai 2005 à 17:05 +0200, Michelle Konzack a écrit :
Am 2005-05-23 16:38:03, schrieb debian-list:
> Le lundi 23 mai 2005 à 16:21 +0200, Michelle Konzack a écrit :

> > __( /usr/sbin/cron.10sec )______________________
> > /
> > | #!/bin/bash
> > |
> > | for COUNT in `seq 5` ; do
> > | run-parts --report /etc/cron.10sec
> > | sleep 10
> > | done
> > ________________________________________________

> eu sa c'est bien joué :) merci nikel je testerai plus tard mais c'est
> pas bete :) merci

Un petite correcture:

__( /usr/sbin/cron.10sec )______________________
/
| #!/bin/bash
|
| for COUNT in `seq 5` ; do
| run-parts --report /etc/cron.10sec &
| disown
| sleep 10
| done
________________________________________________

Si 'run-parts' faire un delay avec l'execution,
tu as de problems...




j'ai trouvé le probleme dans les job cron il ne prend pas les fichier a
éxécuté avec des "." (10s.second.sh dans /etc/cron.seconds :p)

voilà je vous remerci tous :) pour votre aide :)
++
Greetings
Michelle





--
Pensez
Avatar
Michelle Konzack
--TXIPBuAs4GDcsx9K
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2005-05-23 17:20:39, schrieb debian-list:

j'ai trouvé le probleme dans les job cron il ne prend pas les fichier a
éxécuté avec des "." (10s.second.sh dans /etc/cron.seconds :p)



Ah oui, come j'ecrit dans un autre message...
le nome de Script...

voilà je vous remerci tous :) pour votre aide :)
++



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)

--TXIPBuAs4GDcsx9K
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCkfk7C0FPBMSS+BIRAhCpAKCaGGOCFXbEHyu0xXHK5daGBnTVLACdGGhx
STDLcdDKaW5xz0T561awi7A =sIpN
-----END PGP SIGNATURE-----

--TXIPBuAs4GDcsx9K--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact