Commands are executed in non-login, non-interactive shell.
It's allowed to use stream redirection and pipes in commands. Examples:
- timestamped backup:
tar -cpzf /home/backup/backup-${gun_time}.tar.gz /var/www/
- clear memcached:
( sleep 3 ; echo 'flush_all' ; sleep 2 ; echo q; echo q; ) | telnet 127.0.0.1 11211 -eq
- make:
cd /var/www/your_project; make all
To use custom parameters in commands include ${parameter_name}
.
Available global parameters:
{% for name, value in global_parameters %}
${% templatetag openbrace %}{{ name }}{% templatetag closebrace %}
{{ value }}
{% endfor %}