Skip to content

Instantly share code, notes, and snippets.

@bcarlin
Last active April 21, 2020 11:00
Show Gist options
  • Save bcarlin/8fd60dc184f9f5bc210c5e48056ac33d to your computer and use it in GitHub Desktop.
Save bcarlin/8fd60dc184f9f5bc210c5e48056ac33d to your computer and use it in GitHub Desktop.
<authent>
<entry>
<hostid>client</hostid>
<address>127.0.0.1</address>
<port>6666</port>
<isssl>false</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
<entry>
<hostid>client-ssl</hostid>
<address>127.0.0.1</address>
<port>6667</port>
<isssl>true</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
<entry>
<hostid>server</hostid>
<address>127.0.0.1</address>
<port>6666</port>
<isssl>false</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
<entry>
<hostid>server-ssl</hostid>
<address>127.0.0.1</address>
<port>6667</port>
<isssl>true</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
</authent>
#!/usr/bin/env bash
set -e
set -x
wget "https://dl.waarp.org/dist/waarp-r66/3.3.1/waarp-r66-3.3.1-2.linux.tar.gz"
tar xf waarp-r66-3.3.1-2.linux.tar.gz
cd waarp-r66-3.3.1-2
cp -r share/templates etc/conf.d/client
sed -i -e 's:{{app_name}}:client:g' etc/conf.d/client/*.xml
./bin/waarp-r66client.sh client initdb
./bin/waarp-r66client.sh client loadrule etc/conf.d/client
./bin/waarp-r66client.sh client loadauth ../client-authent.xml
cp -r share/templates etc/conf.d/server
sed -i -e 's:{{app_name}}:server:g' etc/conf.d/server/*.xml
./bin/waarp-r66client.sh server initdb
./bin/waarp-r66client.sh server loadrule etc/conf.d/server
./bin/waarp-r66client.sh server loadauth ../server-authent.xml
echo "hello world" > data/client/out/foo.txt
WAARP_SERVICE=1 ./bin/waarp-r66server.sh server start
java -Xms256m -Xmx512m -cp 'share/lib/WaarpR66-3.3.1.jar:share/lib/*' \
org.waarp.openr66.client.DirectTransfer etc/conf.d/client/client.xml \
-to server -rule default -file foo.txt
<authent>
<entry>
<hostid>server</hostid>
<address>127.0.0.1</address>
<port>6666</port>
<isssl>false</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
<entry>
<hostid>server-ssl</hostid>
<address>127.0.0.1</address>
<port>6667</port>
<isssl>true</isssl>
<key>04ebd92364b5aa60c29f04da512aca4be069dc6c6a842e25</key>
</entry>
</authent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment