### ispmanager Specific Examples Source: https://www.ispmanager.ru/docs/developer-guide/mgrctl Examples for querying and modifying web domains in ispmanager. ```bash /usr/local/mgr5/sbin/mgrctl -m ispmgr webdomain | sed 's/=/ /' | awk '{print $2}' ``` ```bash /usr/local/mgr5/sbin/mgrctl -m ispmgr webdomain su= | sed 's/=/ /' | awk '{print $2}' ``` ```bash for i in $(/usr/local/mgr5/sbin/mgrctl -m ispmgr webdomain | awk '{print $1}' | awk -F = '{print $2}'); do /usr/local/mgr5/sbin/mgrctl -m ispmgr domain.fix elid=$i; done ``` ```bash for i in $(/usr/local/mgr5/sbin/mgrctl -m ispmgr webdomain | awk '{print $1}' | awk -F = '{print $2}'); do /usr/local/mgr5/sbin/mgrctl -m ispmgr webdomain.edit php=off elid=$i sok=ok; done ``` -------------------------------- ### Example: Passing a Password via Environment Variable Source: https://www.ispmanager.ru/docs/developer-guide/mgrctl Demonstrates setting an environment variable and using it within an mgrctl command. ```bash export SECRET_PASSWORD=secret ``` ```bash /usr/local/mgr5/sbin/mgrctl -m ispmgr ftp.user.edit name=ftpuser home=/ owner=www-root -e 'passwd=$SECRET_PASSWORD' sok=ok ``` -------------------------------- ### Define a Toolbar Block Source: https://www.ispmanager.ru/docs/developer-guide/dashboadr-desc Example of an XML block definition for a toolbar containing quick-access buttons. ```xml ``` -------------------------------- ### General mgrctl Usage Examples Source: https://www.ispmanager.ru/docs/developer-guide/mgrctl Common administrative tasks for managing control panel states and inspecting functions. ```bash /usr/local/mgr5/sbin/mgrctl -m exit ``` ```bash /usr/local/mgr5/sbin/mgrctl -m -i ``` ```bash /usr/local/mgr5/sbin/mgrctl -m -i funcname lang=ru ``` -------------------------------- ### Define form buttons in XML Source: https://www.ispmanager.ru/docs/developer-guide/form-desc Example showing the structure of the buttons section within a form, including various button types like back, ok, cancel, next, reset, blank, and setvalues. ```xml