Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,150 of 9,150 pages
About the help in other languages
All help pages

exp:exphostrun

Run a console command (or, with --shell, a command line) in this installation on one host of settings/cluster.ini, over ssh.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/exphostrun.md

On this page

This page is a translation. Read the English original

exp:exphostrun

Run a console command (or, with --shell, a command line) in this installation on one host of settings/cluster.ini, over ssh.

Skript bin/php/exphostrun.php, Code in kernel/private/classes/commands/exphostrun.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:exphostrun --help
./console exp:host:run --help
php bin/php/exphostrun.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Run a command in this installation on one host, over ssh
The host is one of settings/cluster.ini [ClusterSettings] HostList[]. The words after --
are a console command run there as bin/php/console <words>, in the installation's root
on that host, with its PHP binary, as its User= (sudo -n), else as the ssh login.
--shell runs the words as a command line for sh instead. ssh runs with BatchMode=yes:
a host that would ask for a password fails. Nothing is interactive.

./console exp:host:run web -- exp:cache status
./console exp:host:run web -- exp:ezcache --clear-tag=template
./console exp:host:run web --shell -- git log -1 --oneline
./console exp:host:run web --dry-run -- exp:velocity deploy

Exit code: 0 PASS; 1 the command failed on the host (or ssh did); 2 wrong options or settings.

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/exphostrun.php, kernel/private/classes/commands/exphostrun.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x