Cronjob Sekundengenau starten?

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
freakx0
Posts: 9
Joined: 2006-04-28 14:11
Location: Ulm
 

Cronjob Sekundengenau starten?

Post by freakx0 »

Ich muss ein Script Sekunden genau starten.
Per Cron sind doch nur Minutengenaue Starts/Aufrufe möglich.
Ein Script welches da einfach eine Schleife macht bis es endlich die Zeit ist, die ich brauche ist etwas unperformant, oder?

Wie wie könnte ich das sonst erledigen?

Gruß
Dominik
User avatar
daemotron
Administrator
Administrator
Posts: 2643
Joined: 2004-01-21 17:44
 

Re: Cronjob Sekundengenau starten?

Post by daemotron »

Code: Select all

man at
User avatar
Joe User
Project Manager
Project Manager
Posts: 11190
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Cronjob Sekundengenau starten?

Post by Joe User »

und `man netdate` nicht vergessen:

Code: Select all

cat > /etc/cron.hourly/ntpdate << "EOF"
#!/bin/sh

/usr/sbin/ntpdate -b -s -p 4 -t 0.1 ptbtime1.ptb.de

exit 0
EOF

chmod 0755 /etc/cron.hourly/ntpdate
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.