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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
---| CCCP 0.5
Red Connect Console Program
by: hampa@chello.se
Licence: GPL 2
http://members.chello.se/hampasfirma/cccp/index.html
1. About
2. Installing
3. Scripting
4. Examples
---| About
CCCP is a console front end to Direct Connect Text Client.
Direct Connect is a filesharing program made by
neo modus (http://www.neo-modus.com).
---| Installing
First make sure you have DCTC on your system,
cccp uses dctc which can be found at:
http://ac2i.tzo.com/dctc/
Then install CCCP:
make && make install
---| Scripting
With installtion comes some example scripts that uses cccp. Check
the /scripts/SCRIPTS file for a complete description of all scripts.
---| Examples
Searching:
---------
usage:
cccp -s pattern filetype
filetypes are 1-any, 2=audio,3=compressed,4=document,5=exe,6=picture,7=video,8=folder
Ex:
Search for divx movies:
cccp -s divx 7
Downloading:
------------
cccp -d *nick*[localfile]*remotefile*[start_pos]
Ex:
1. Download Blockbuster.mpg from the user hampa and save it as the same name:
cccp -d "*hampa**c:\DirectConnect\File share\Blockbuster.mpg*"
Scripting:
The dlsearchresult script will download all files that are piped to it in
the format that -s outputs.
Ex:
cccp -s divx 7 | grep Lord | ./dlsearchresult
Queues:
-------
cccp -q
This will output your command queue.
Scripting:
the clearqueue script will clear all queued commands.
the dq script will show a list of queues and let you specify which one to stop.
Transfers:
----------
cccp -t
This will output your current and pending downloads.
Users:
-----
List all users;
cccp -u
Show user info:
cccp -n nickname
List all files from a user:
cccp -l nickname
Scripting:
the listall script will list all files from all users. This can take a long
time and will output alot of files. On my hub that I am testing this on now
I get aproximately 1000000 lines (yes.. one million files).
ex:
./listall
this will produce a listall.log file with all the files.
Segmented downloading:
------------------
With segmented downloading you can download from several sources at the same time.
List your segmented downloads and queues:
cccp -gq Group Quick List
cccp -gl Group List (this list has more information)
Create a new segmented group:
cccp -gn gdlid filesize filename
Add file to group download:
cccp -ga gdlid nickname remotefilename remotefilesize
Remove segmented groups and downloads:
cccp -gd gdlid Delete download
cccp -ge gdlid End group download
Other switches:
---------------
-h Print usage
--help print usage
-o This will print the output from dctc to stdout.
-O This will suppres output (-o is default with -s -q)
-N This will suppres all errors from DCTC (ERR ""]).
-t This will set the timeout on searches. -t 5 means that
if a search has not returned any more results for the
past 5 seconds cccp will exit. Default is 10 seconds.
-H use hub with the substring.
It is possible to start several instances of dctc. This switch lets
you specify which one to connect to. You only need to specify a substring
of the hubname you wish to connect to.
-L List the hubnames dctc clients are connected to.
-S TimeStamp output. if -o flag this will put an timestamp on output.
-x make DCTC client exit. Wait for dl to finnish first.
-X force DCTC to exit. Dont wait for dl to finnish first.
example:
[hampa@chello]$ cccp -L
dctc-00031Ef-startrekworld.sytes.net
dctc-00003571-kronprinsen71.dns2go.com
[hampa@chello]$ cccp -H kron
-r This will send the specifyed string to dctc. All commands in dctc are
not implemented as swiches in cccp.
example:
$cccp -r "DESC 10 gig love"
this will change your description to a new one.
$cccp -r "OFFSET 1000000"
This will add 1 million bytes to the size of your shared data.
For more commands. See the dctc/Documentation/commands file.
|