CRONTAB mit putty einrichten

  • 1und1 server

    Diese Zeile bitte in den CRONTAB Ihres Webservers einfügen:

    */10 * * * * wget -q -O /dev/null http://www.vogtlanddomain.de/wp-admin/admin-ajax.php?action=knewsCron

    Da kommt

    -bash: */10: No such file or directory

    Was mache ich da falsch?
    Mascha

    Einmal editiert, zuletzt von Mascha (20. Oktober 2012 um 18:04)

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Ich vermute mal, das du einen Root oder V-Server hast.

    z.B.

    Code
    crontab -e

    oder als entsprechender Benutzer z.B. www-data

    Code
    crontab -uwww-data -e
  • Es ist ein 1&1 Dedicated Server

    bei crontab -e

    Edit this file to introduce tasks to be run by cron.
    #
    # Each task to run has to be defined through a single line
    # indicating with different fields when the task will be run
    # and what command to run for the task
    #
    # To define the time you can provide concrete values for
    # minute (m), hour (h), day of month (dom), month (mon),
    # and day of week (dow) or use '*' in these fields (for 'any').#
    # Notice that tasks will be started based on the cron's system
    # daemon's notion of time and timezones.
    #
    # Output of the crontab jobs (including errors) is sent through
    # email to the user the crontab file belongs to (unless redirected).
    #
    # For example, you can run a backup of all your user accounts
    # at 5 a.m every week with:
    # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
    #
    # For more information see the manual pages of crontab(5) and cron(8)
    #
    # m h dom mon dow command
    ~
    1,1 All

  • Kurze Frage, hast du überhaupt Ahnung von Linux bzw. kannst einen Root-Server administrieren?

    Du gehst ganz runter zum Ende der Datei und fügst einfach deine Zeile ein

    Code
    */10 * * * * wget -q -O /dev/null http://www.domain.de/wp-admin/admin-ajax.php?action=knewsCron

    Die beiden Zeilen

    Code
    ~
    1,1 All

    ergeben für mich keinen Sinn und können gelöscht werden.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!