Skip to content

Commit 3ed194e

Browse files
authored
Create xcall
1 parent b708e57 commit 3ed194e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

xcall

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
pcount=$#
4+
if (( pcount < 1 )) ; then
5+
echo no args;
6+
exit;
7+
fi
8+
9+
10+
11+
#p1=$1;
12+
#fname=`basename $1`
13+
14+
pdir=`cd -P $(dirname $1);pwd`
15+
16+
for server in $(seq 1 20) ; do
17+
echo '============================================probd0'${server}'============================================'
18+
ssh probd0${server} "cd $pdir && $@"
19+
done
20+
exit $?
21+

0 commit comments

Comments
 (0)