repo.or.cz
/
mldonkey.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
patch #6557
[mldonkey.git]
/
distrib
/
mldonkey_command
blob
c64c922c6879d7c5bcad434b35a7d2c3779c043e
1
#!/bin/sh
2
3
# To run this program, you need the nc (netcat) program
4
5
MLDONKEY_IP
=
127.0.0.1
6
MLDONKEY_TELNET_PORT
=
4000
7
8
if
[
$1
=
"--auth"
] ;
then
9
auth
=
"auth
$2
"
10
shift
2
11
else
12
auth
=
""
13
fi
14
15
nc
$MLDONKEY_IP $MLDONKEY_TELNET_PORT
<<EOF
16
$auth
17
$*
18
q
19
EOF