1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
###############################################################################
# #
# TakTuk, a middleware for adaptive large scale parallel remote executions #
# deployment. Perl implementation, copyright(C) 2006 Guillaume Huard. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #
# #
# Contact: Guillaume.Huard@imag.fr #
# Laboratoire LIG - ENSIMAG - Antenne de Montbonnot #
# 51 avenue Jean Kuntzmann #
# 38330 Montbonnot Saint Martin #
# FRANCE #
# #
###############################################################################
0:TITLE:TAKTUK OPTIONS TESTS
1:TITLE:SEPARATORS, Commands separator
1:CMD:$TAKTUK -n -C: -F arguments
2:TITLE:SEPARATORS, Options separator
2:CMD:$TAKTUK -n -O: -F arguments2
3:TITLE:SEPARATORS, Commands and options separator
3:CMD:$TAKTUK -n -O= -C: -F arguments3
4:TITLE:OUTPUT TEMPLATES, Stream suppression (status)
4:CMD:$TAKTUK -o status `generate_hosts 10`
:RAW: broadcast exec { echo \$TAKTUK_RANK }
5:TITLE:OUTPUT TEMPLATES, Raw output (default)
5:CMD:$TAKTUK
:RAW: -o default='"$line$eol"'
:CMD: `generate_hosts 10`
:RAW: broadcast exec { echo \$TAKTUK_RANK }
6:TITLE: OUTPUT TEMPLATES, Complex output, odd lines (output)
6:CMD:$TAKTUK
:RAW: -o output='$user_scalar = defined($user_scalar)?$user_scalar+1:0, ($user_scalar%2)?$line."\n":undef'
:CMD: `generate_hosts 1` broadcast exec { ls }
7:TITLE:OUTPUT TEMPLATES, Position and state of instances
7:CMD:$TAKTUK
:RAW: -o state='"position $position rank $rank > ".event_msg($line)."\n"'
:CMD: `generate_hosts 10`
:RAW: broadcast exec { echo \$TAKTUK_RANK }
8:TITLE:DEPLOYMENT CHAIN, Batch, no propagation
8:CMD:$TAKTUK -n `generate_local_chain 10`
:RAW: broadcast exec [ echo \$TAKTUK_HOSTNAME ]
9:TITLE:DEPLOYMENT TREE USING GROUPS AND GATEWAY, Interactive, propagation
9:RAW:echo
:RAW: 'synchronize network state;'
:RAW: 'broadcast exec [ echo $TAKTUK_POSITION ];'
:RAW: |
:CMD: $TAKTUK_RELATIVE -s -G localhost -[
:CMD: -b -d1 `generate_hosts 10` -G localhost -e
:CMD: -b -d2 -G localhost `generate_hosts 10` -G localhost -e
:CMD: -]
|