# Shopware Controller über Shell ausführen

**URL:** <https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [31. Januar 2013 um 16:56 UTC](https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302 "2013-01-31T16:56:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![teapavillion](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@teapavillion](https://forum.shopware.com/u/teapavillion)\
**Post date:** [31. Januar 2013 um 16:56 UTC](https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302/1 "2013-01-31T16:56:49Z")

</div>

Hallo, es gibt ja die Möglichkeit Cron Jobs von Shopware über die Shell zu starten. ` /usr/local/php5.3/bin/php-cgi /mpath/www.mydomain.de/shopware.php /backend/cron ` Gibt es auch die möglichkeit einen frontend Controller über die Shell auszuführen?? ` /usr/local/php5.3/bin/php-cgi /mypath/www.mydomain.de/shopware.php /frontend/MyController/myaction` wenn ich dies aufrufen möchte, scheint er den Controller aufzurufen, jedoch bekomme ich nur die Ausgabe … [quote]Status: 301 Moved Permanently X-Powered-By: PHP/5.3.10 Set-Cookie: session-1=bcc6ca34cfe76833c344c76aee0efc49f1737a15; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=utf-8 Location: [http://www.mydomain.de](http://www.mydomain.de) [/quote] hat jemand eine idee wie ich es hinbekomme das der Controllercode ganz normal ausgeführt wird? Gruß Florian

---

<div class="post-metadata">

**Author:** ![ottscho](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@ottscho](https://forum.shopware.com/u/ottscho)\
**Post date:** [4. Februar 2013 um 13:02 UTC](https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302/2 "2013-02-04T13:02:37Z")

</div>

Du könntest es mit wget versuchen. So mache ich das mit Importscripten (Controller), welche ich über die Shell starten möchte.

---

<div class="post-metadata">

**Author:** ![teapavillion](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@teapavillion](https://forum.shopware.com/u/teapavillion)\
**Post date:** [4. Februar 2013 um 13:05 UTC](https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302/3 "2013-02-04T13:05:56Z")

</div>

wget ist eine Idee, jedoch ist die Scriptlaufzeit dann doch begrenzt oder? das Scipr kann durchaus schon mehrere Stunden benötigen bis es abgearbeitet ist.

---

<div class="post-metadata">

**Author:** ![ottscho](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@ottscho](https://forum.shopware.com/u/ottscho)\
**Post date:** [4. Februar 2013 um 13:58 UTC](https://forum.shopware.com/t/shopware-controller-uber-shell-ausfuhren/11302/4 "2013-02-04T13:58:09Z")

</div>

Das kann ich nicht direkt sagen. Aber mein Script ist in einer Schleife und ruft sich immer wieder von alleine auf, bis alle Datensätze durchgearbeitet sind.
