Crontabs of all users

Sometimes it can be helpful to list the crontabs of all users. Eg. to find out why your server periodically has a load of over 80%...

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

Now you can search all crontabs that are done on the time of your load peak.

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Sie können syntax highlighting von Quelltext aktivieren, indem Sie folgende Tags einsetzen: <code>, <blockcode> The supported tag styles are: <foo>, [foo]. PHP-Quelltext kann auch in "<?php ... ?>" oder "<% ... %>" eingepackt werden.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zeilen und Absätze werden automatisch erzeugt.
  • Sie dürfen andere Beitrage mit [quote] Tags Zitieren.

Weitere Informationen über Formatierungsoptionen

CAPTCHA
Diese Frage dient dazu festzustellen, ob Sie ein Mensch sind und um automatisierte SPAM-Beiträge zu verhindern.
Image CAPTCHA
Enter the characters shown in the image.
 

Too Cool for Internet Explorer