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
|
###############################################################################
# #
# kanif, a TakTuk wrapper for cluster management. #
# Perl implementation, copyright(C) 2007 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 #
# ENSIMAG - Laboratoire ID #
# 51 avenue Jean Kuntzmann #
# 38330 Montbonnot Saint Martin #
# #
###############################################################################
0:TITLE:Test kash
1:TITLE:simple command execution on default cluster
1:CMD:$KASH -f ../kanif.conf hostname
2:TITLE:interactive sequence of interactive commands
2:INC:interactive.sh
2:CMD:interactive '|' $KASH -n localhost[1-5] -i
3:TITLE:sequential monitored execution on cluster '"essai"', postprocess 0
3:CMD:$KASH -m -s -p0 -f ../kanif.conf essai:1-4 expr "'\\\$\\\$'" / 2
4:TITLE:sequential monitored execution on cluster "essai"
4:CMD:$KASH -m -s -nlocalhost[1-5] expr "'\\\$\\\$'" / 2
5:TITLE:signals in interactive mode, terminating early
5:CMD:$KASH -m -s -nlocalhost[1-5] sleep 5\\\\\\;echo done '&'
5:CMD:PID=\\\$!
5:CMD:sleep 1
5:CMD:kill -INT \\\$PID
5:CMD:sleep 2
5:CMD:kill -INT \\\$PID
5:CMD:sleep .1
5:CMD:kill -INT \\\$PID
5:CMD:wait \\\$PID
|