2011-05-31 18:04:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-01-06 18:10:20 +00:00
|
|
|
SERVER1=parallel-server1
|
2011-05-31 18:04:46 +00:00
|
|
|
SERVER2=parallel-server2
|
|
|
|
|
2018-09-20 22:15:14 +00:00
|
|
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -vj10 -k --joblog /tmp/jl-`basename $0` -L1 -r | perl -pe 's/(PARALLEL_PID....)\d+/$1XXXXX/g'
|
2011-05-31 18:04:46 +00:00
|
|
|
echo '### Test --return of weirdly named file'
|
2015-01-02 12:07:44 +00:00
|
|
|
stdout parallel --return {} -vv -S parallel\@$SERVER1 echo '>'{} ::: 'aa<${#}" b' |
|
2016-05-17 00:11:38 +00:00
|
|
|
perl -pe 's/\S*parallel-server\S*/one-server/;s:[a-z+=/\\0-9]{500,}:base64:i;'; rm 'aa<${#}" b'
|
2011-07-17 01:03:57 +00:00
|
|
|
|
|
|
|
echo '### Test if remote login shell is csh'
|
2015-01-02 12:07:44 +00:00
|
|
|
stdout parallel -k -vv -S csh@localhost 'echo $PARALLEL_PID $PARALLEL_SEQ {}| wc -w' ::: a b c |
|
2016-05-17 00:11:38 +00:00
|
|
|
perl -pe 's/\S*parallel-server\S*/one-server/;s:[a-z+=/\\0-9]{500,}:base64:i;'
|
2011-05-31 18:48:00 +00:00
|
|
|
|
2013-01-09 22:06:01 +00:00
|
|
|
|
2011-07-17 01:03:57 +00:00
|
|
|
EOF
|