-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsend-file
More file actions
executable file
·56 lines (45 loc) · 957 Bytes
/
Copy pathsend-file
File metadata and controls
executable file
·56 lines (45 loc) · 957 Bytes
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
#!/bin/sh
#
# Start script for the UDT-Java send-file application
# Usage: send-file <server-port>
# [--localIP=<local ip>]
# [--verbose]
#
#
#Installation Directory
#
dir=`dirname $0`
if [ "$dir" != "." ]
then
INST=`dirname $dir`
else
pwd | grep -e 'bin$' > /dev/null
if [ $? = 0 ]
then
INST=".."
else
INST=`dirname $dir`
fi
fi
INST=${INST:-.}
#
#Alternatively specify the installation dir here
#
#INST=
#
# Alternative CC class
#
#OPTS=$OPTS" -Dudt.congestioncontrol.class=udt.cc.SimpleTCP"
#
# Collect and store some performance data (e.g. throughput)
# (data will be collected in memory and stored after send finishes
# to a udtstats-<NNNN>.csv file)
#OPTS=$OPTS" -Dudt.sender.storeStatistics=true"
#which Java command to use
JAVA=java
#location of udt.jar
CP=$INST/target/udt-java-0.6-SNAPSHOT.jar
echo $CP
#memory for the VM
MEM=-Xmx128m
$JAVA $MEM $OPTS -cp $CP udt.util.SendFile $*