PDA

View Full Version : %USER is downloading.....


CP-Geek
10-07-2004, 09:19 AM
Is this possible:

Every time a user start's a downloading a file there would be an line in IRC of it:

"Geek is downloading /mp3/Uriah Heep/lady.in.black.mp3"

I have so little traffic in my box so the amount of lines to IRC is no problem.

CP :)

bytepoet
02-03-2005, 02:45 PM
i also would like to know how to do this, VERY interested

esmandil
02-03-2005, 05:27 PM
It is not complicated to write tcl script that would do what you want. Put it in

[FTP_Post-Command_Events]
retr = TCL ../scripts/logDownload.itcl

And inside the script:
putlog "DOWNLOAD: something or else"

I leave it up to you to get the the user, filename etc and to format the actual message correctly.

deo
02-03-2005, 10:31 PM
##!
##[FTP_Pre-Command_Events]
##retr = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end

bytepoet
02-04-2005, 04:29 PM
:banana: total newb here :banana:

where infact does this newly created script go? /eggdrop/scripts/ ?

CP-Geek
02-09-2005, 06:08 AM
Thanks Deo, I'll try to test that

CP :)

EDIT: Works like a charm! :) I also modifoed it and put a "User has downloaded ...." and tried to put "@ 123 KB/s" but didnt get the cookie to work? any ideas?

CP-Geek
02-09-2005, 09:57 AM
Originally posted by byte-poet
:banana: total newb here :banana:

where infact does this newly created script go? /eggdrop/scripts/ ?

No, to Your io's /scripts folder, You also have to edit ioftpd.ini.

CP :)

bytepoet
02-09-2005, 08:13 PM
thanks!

i will modify it tomorrow and report back my findings!

UPDATE: put everything in and restarted the ftp server....no change, only announces logons and logoffs...

i put the code into a file and put it in the scripts dir, and then modified the ioftpd.ini

dunno what im doin wrong here.....

CP-Geek
02-10-2005, 07:37 AM
Where and what did You edit in ioftpd.ini?

Also, I'd like to know how do to remove path from this:

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002 uploaded $pwd\002[lindex $args 2]\002\""}

CP :)

bytepoet
02-10-2005, 03:49 PM
i created a file called download.itcl and i placed it in \ioFTPD\scripts...

in that file, i put in:


##!
##[FTP_Pre-Command_Events]
##retr = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end


and in the ioftpd.ini i now have a post section that looks like this...


[FTP_Post-Command_Events]
;mkd =
;rmd =
;stor =
;dele =
retr = TCL ..\scripts\download.itcl


any ideas what i 'm doin wrong?

bytepoet
02-17-2005, 01:53 AM
ok, after fiddling with this thing nightly, i cant get this to work. anyone able to help me out here?

CP-Geek
02-17-2005, 05:24 AM
It should be in

[FTP_Pre-Command_Events]
;mkd =
;rmd =
;stor =
;dele =
retr = TCL ..\scripts\download.itcl

Notice the Pre-Command-part?

Also I noticed that sometimes a restart is needed, rehash don't seem to reset everything.

deo
02-17-2005, 08:17 AM
yup. pre, else user isnt to start download, theyve finished it

bytepoet
02-17-2005, 02:23 PM
bwahahaha...will change and see whats up

bytepoet
02-17-2005, 02:56 PM
ok, same stuff. It announces logins and logouts but not when created
files are as examples
the ioftpd.ini contains:

[FTP_Pre-Command_Events]
;list =
;stor =
;mkd =
retr = TCL ..\scripts\download.itcl

[FTP_Post-Command_Events]
;mkd =
;rmd =
;stor =



and the download.itcl contains:

##!
##[FTP_Pre-Command_Events]
##retr = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end


i now have the ioftpd trying to execute it in the pre section, but no change...no output to the irc channel. It DOES look like its putting it to a log though...where do i go from here!?

deo
02-17-2005, 03:57 PM
this may sound silly but are u using dzsbot too?

and check its output to log
and check systemerror.log in io /logs dir

bytepoet
02-17-2005, 04:03 PM
yes, using latest and greatest dzbot.

i see the ouput, so i know the catch is working...but it doesnt output to irc.

_rEuTeL_
03-19-2005, 02:31 PM
doesn't work here either
you should add something in dvzbot's cfg too imo, but I don't know what

plz help