2013-11-22 17:24:09 +00:00
|
|
|
### Test use special ssh
|
|
|
|
TODO test ssh with > 9 simultaneous
|
2013-03-24 16:24:59 +00:00
|
|
|
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
|
|
|
|
73
|
|
|
|
74
|
|
|
|
75
|
|
|
|
76
|
|
|
|
77
|
|
|
|
78
|
|
|
|
79
|
|
|
|
80
|
|
|
|
81
|
|
|
|
82
|
|
|
|
83
|
|
|
|
84
|
|
|
|
85
|
|
|
|
86
|
|
|
|
87
|
|
|
|
88
|
|
|
|
89
|
|
|
|
90
|
|
|
|
91
|
|
|
|
92
|
|
|
|
93
|
|
|
|
94
|
|
|
|
95
|
|
|
|
96
|
|
|
|
97
|
|
|
|
98
|
|
|
|
99
|
|
|
|
100
|
2015-02-01 20:46:06 +00:00
|
|
|
echo '### test --timeout --retries'
|
|
|
|
### test --timeout --retries
|
2017-01-06 18:10:20 +00:00
|
|
|
parallel -j0 --timeout 5 --retries 3 -k ssh {} echo {} ::: 192.168.1.197 8.8.8.8 parallel@parallel-server1 parallel@lo parallel@parallel-server2
|
|
|
|
parallel@parallel-server1
|
2015-02-01 20:46:06 +00:00
|
|
|
parallel@lo
|
|
|
|
parallel@parallel-server2
|
|
|
|
echo '### test --filter-hosts with server w/o ssh, non-existing server'
|
|
|
|
### test --filter-hosts with server w/o ssh, non-existing server
|
2017-01-06 18:10:20 +00:00
|
|
|
parallel -S 192.168.1.197,8.8.8.8,parallel@parallel-server1,parallel@lo,parallel@parallel-server2 --filter-hosts --nonall -k --tag echo
|
2015-02-01 20:46:06 +00:00
|
|
|
parallel@lo
|
2017-01-06 18:10:20 +00:00
|
|
|
parallel@parallel-server1
|
2015-02-01 20:46:06 +00:00
|
|
|
parallel@parallel-server2
|
2014-11-13 03:19:33 +00:00
|
|
|
echo '### bug #41964: --controlmaster not seems to reuse OpenSSH connections to the same host'
|
|
|
|
### bug #41964: --controlmaster not seems to reuse OpenSSH connections to the same host
|
|
|
|
(parallel -S redhat9.tange.dk true ::: {1..20}; echo No --controlmaster - finish last) & (parallel -M -S redhat9.tange.dk true ::: {1..20}; echo With --controlmaster - finish first) & wait
|
|
|
|
With --controlmaster - finish first
|
|
|
|
No --controlmaster - finish last
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### --filter-hosts - OK, non-such-user, connection refused, wrong host'
|
2013-08-16 11:11:35 +00:00
|
|
|
### --filter-hosts - OK, non-such-user, connection refused, wrong host
|
2014-07-15 00:40:38 +00:00
|
|
|
parallel --nonall --filter-hosts -S localhost,NoUser@localhost,154.54.72.206,"ssh 5.5.5.5" hostname
|
2013-11-22 17:24:09 +00:00
|
|
|
aspire
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### test --workdir . in $HOME'
|
2013-08-19 09:15:39 +00:00
|
|
|
### test --workdir . in $HOME
|
2017-01-06 18:10:20 +00:00
|
|
|
cd && mkdir -p parallel-test && cd parallel-test && echo OK > testfile && parallel --workdir . --transfer -S parallel@parallel-server1 cat {} ::: testfile
|
2013-08-19 09:15:39 +00:00
|
|
|
OK
|
2015-08-04 05:54:40 +00:00
|
|
|
echo '### TODO: test --filter-hosts proxied through the one host'
|
|
|
|
### TODO: test --filter-hosts proxied through the one host
|
|
|
|
echo '### bug #43358: shellshock breaks exporting functions using --env'
|
|
|
|
### bug #43358: shellshock breaks exporting functions using --env
|
|
|
|
echo shellshock-hardened to shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S parallel@localhost funky ::: shellshock-hardened
|
|
|
|
shellshock-hardened to shellshock-hardened
|
|
|
|
Function shellshock-hardened
|
|
|
|
echo '2bug #43358: shellshock breaks exporting functions using --env'
|
|
|
|
2bug #43358: shellshock breaks exporting functions using --env
|
|
|
|
echo shellshock-hardened to non-shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S centos3.tange.dk funky ::: non-shellshock-hardened
|
|
|
|
shellshock-hardened to non-shellshock-hardened
|
|
|
|
Function non-shellshock-hardened
|