# Von Weboberfläche ein Shellscript starten

**URL:** <https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735>\
**Category:** Administration\
**Created:** [1. Juli 2021 um 10:04 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735 "2021-07-01T10:04:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [1. Juli 2021 um 10:04 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735/1 "2021-07-01T10:04:46Z")

</div>

Hallo.

Hat jemand eine Idee wie man von einer Weboberfläche ein Shellscript starten kann.  
Mein Hauptproblem ist, dass wenn ich eine PHP ausführen lasse per HTTP Request, z.B, [https://example.com/katalog-updates.php](https://example.com/katalog-updates.php), Dann bricht es nach X Sekunden ab (Max execution time).  
Wenn ich das per Shell eingebe z.B. /opt/php-7.4/bin/php /var/www/katalog-updates.php läuft es schön durch.

Danke und Gruss.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [1. Juli 2021 um 10:16 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735/2 "2021-07-01T10:16:52Z")

</div>

Hi,

Du müsstest die max\_execution\_time erhöhen - diese greift für den Web Request, bei der Shell ist diese per Default unlimited.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [1. Juli 2021 um 10:19 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735/3 "2021-07-01T10:19:07Z")

</div>

Hi, Die max-execution-time würde ich ungern erhöhen.  
Vll formuliere ich mal die Frage anders.  
Was ist eine alternative zu exec() ?

Danke und Gruss

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [1. Juli 2021 um 10:36 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735/4 "2021-07-01T10:36:03Z")

</div>

Hm, eigentlich ist exec() oder system() ja schon das was du suchst.

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [1. Juli 2021 um 11:43 UTC](https://forum.shopware.com/t/von-weboberflaeche-ein-shellscript-starten/88735/5 "2021-07-01T11:43:23Z")

</div>

Hi,

Du könntest Dir eine Subdomain auf das gleiche Verzeichnis legen, bei welcher Du den Timeout erhöhst. So betrifft das nicht Deine reguläre Domain, wo ggfs. ein Skript/Request Amok laufen könnte.

Viele Grüße
