---
title: "Direct Mail und Crontab Problem"
url: "https://www.typo3.net/d/36813-direct-mail-und-crontab-problem"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2006-01-26"
last_reply: "2006-01-26"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Direct Mail und Crontab Problem

Extensions · 3 Antworten · gestartet 2006-01-26

## Eröffnungsbeitrag

**ms70** · 2006-01-26 · [Beitrag #1](https://www.typo3.net/d/36813-direct-mail-und-crontab-problem/1)

ich versuche nun schon seit einiger Zeit einen Cronjob ueber die Eingabemaske von Plesk (7.5.4) zu installieren, der mir dann die Newsletter von Direct Mail verschickt.

Leider bekomm ich aber nur fehlermeldungen und ich weis nicht, wo ich da schrauben muss:

**/bin/sh: /home/httpd/vhosts/riodio.be/httpdocs/tqs/typo3/ext/direct_mail/mod/dmailerd.phpcron: /usr/local/bin/php: bad interpreter: No such file or directory**

Ich hab schon einiges versucht, wie z.B. die erste Zeile in der
dmailerd.phpcron nach /usr/bin/php zu aendern, aber das bringt wieder andere Fehlermeldungen.

Ich bin jetzt mit meinem Latein am Ende und braeuchte mal eine genauere Beschreibung, was bei der Einrichtung eines Cronjobs fuer Direct Mail Versand alles zu beachten und einzustellen ist.

## Antworten

### [#2](https://www.typo3.net/d/36813-direct-mail-und-crontab-problem/2) · dfluess · 2006-01-26

Hi,

ich hab auch schon endlos daran herumexperimentiert.

Wenn jemand das am laufen hat und wohlmöglich sein Typo3 noch bei "Mittwald" hostet, dann wäre ein Hinweis nicht übel.. :)
D.

### [#3](https://www.typo3.net/d/36813-direct-mail-und-crontab-problem/3) · ms70 · 2006-01-26

wenn ich im script *dmailerd.phpcron* den Pfad auf

#! /usr/bin/php -q

aender, kommt Crontab mit dieser Meldung:

> Usage: php [options] [-f] <file> [args...]
>        php [options] -r <code> [args...]
>        php [options] [-- args...]
>   -a               Run interactively
>   -c <path>|<file> Look for php.ini file in this directory
>   -n               No php.ini file will be used
>   -d foo[=bar]     Define INI entry foo with value 'bar'
>   -e               Generate extended information for debugger/profiler
>   -f <file>        Parse <file>.
>   -h               This help
>   -i               PHP information
>   -l               Syntax check only (lint)
>   -m               Show compiled in modules
>   -r <code>        Run PHP <code> without using script tags <?..?>
>   -s               Display colour syntax highlighted source.
>   -v               Version number
>   -w               Display source with stripped comments and whitespace.
>   -z <file>        Load Zend extension <file>.
>
> args...          Arguments passed to script. Use -- args when first 			  argument starts with - or script is read from stdin

wat is da los...?

### [#4](https://www.typo3.net/d/36813-direct-mail-und-crontab-problem/4) · ms70 · 2006-01-26

ok.. Fehler gefunden.

Hab das Script **dmailerd.phpsh** aus der direct_mail Extension ***sr_direct_mail_ext*** genommen anstatt **dmailerd.phpcron**.
Das funktioniert ohne Aenderungen fuer mich.
Crontab versendet nun den wartenden Newsletter aus Direct Mail.

na dann ...  :-)

---

Quelle: „Direct Mail und Crontab Problem“, typo3.net, https://www.typo3.net/d/36813-direct-mail-und-crontab-problem
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
