Old 03-07-2004, 11:54 PM   #1
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Cool 'site showlog' addon

Parses through xferlog to display last ## downloads (or uploads) by (a user or all users) .

the included readme.txt fully explains the script. i attached the file so you don't have to DL the script, but i recommend reading the readme (for examples of script output) if you are at all interested in displaying the xferlog.

i didn't write this script for the public, i wrote it for my site... if you don't see the use or don't like it then that's fine with me...I'm just making it available because somebody might want it.

find it in the scripts section (www.ioftpd.com/scripts)
Attached Files
File Type: txt readme.txt (3.8 KB, 124 views)
mr_F_2 is offline   Reply With Quote
Old 03-08-2004, 02:44 AM   #2
karmacoma
Junior Member
 
Join Date: Sep 2002
Posts: 27
Thumbs up

Nice little script mr_F, i like it a lot!
karmacoma is offline   Reply With Quote
Old 03-08-2004, 07:32 AM   #3
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

Nice script. Although it crashes and shows 550 Command failed. when I try 'site showlog all' or 'site showlog all 20' or whatever.

And one more thing.. please remove all 'real' release names from the readme.txt.
Zer0Racer is offline   Reply With Quote
Old 03-08-2004, 09:38 AM   #4
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
Default

yep indeed a nice script, good work.

Would be nice if it shows some message if script doesnt find anything on the user in xferlog.
instead of this message...

site showlog ioFTPD
200 Command successful.
odd is offline   Reply With Quote
Old 03-08-2004, 11:16 AM   #5
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

Quote:
Originally posted by Zer0Racer
Nice script. Although it crashes and shows 550 Command failed. when I try 'site showlog all' or 'site showlog all 20' or whatever.

And one more thing.. please remove all 'real' release names from the readme.txt.
it shouldn't. maybe you put it in the wrong folder? or if you have GCC or MSDEV C++ you can adjust BUFFER to be 2000 or so, maybe 2500 even

readme = cleaned up

odd::: i updated script, added that for you
mr_F_2 is offline   Reply With Quote
Old 03-21-2004, 01:38 PM   #6
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
Default

Dunno what im doing wrong but this script crash when I list downloads from myself. But I can list uploads.
btw I cant list myself(downloads) but everyone else works fine. In other words I can list the other users without the script crashing.

useing cmd:
site showlog username 10
and
site showlog username down
both these commands makes the exe crash. And showing a windows error message.

Cant give u much more info :-/
Dunno if its gona help u anything but just ask if u need me to test something.
odd is offline   Reply With Quote
Old 03-22-2004, 07:13 PM   #7
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

hmm
first off, "down" isn't a valid direction, either "up" or leave direction blank (blank defaults to list downloads).

in trying what you tried i get:
[18:11:03] site showlog testusr 10
[18:11:03] 200-[ 1] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 2] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 3] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200 Command successful.

I've probably changed some things since the version you have though. I'll update it on the scripts page and you can try that version, if it still don't work send me your xferlog to nyarr@myrealbox.com
mr_F_2 is offline   Reply With Quote
Old 03-25-2004, 08:11 AM   #8
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
Default

I erased the xferlog and since then Showlog has been working fine. No crash on Master..

Another suggestion that would give some better overview would be to add date/time.

[18:11:03] site showlog testusr 10
[18:11:03] 200-[ 1](04-03/12 17:11:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 2](04-03/12 17:10:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 3](04-03/12 17:09:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200 Command successful.

Something like this.
odd is offline   Reply With Quote
Old 04-19-2004, 08:22 PM   #9
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

added: list last ## releases a user has downlaoded

new release mode syntax:
site showlog username -r
or
site showlog username # -r

note: site showlog all -r doesn't work

example:

Code:
[L] site showlog mr_F -r
[L] 200-[ 1] mr_F    latest_release_downlaoded
[L] 200-[ 2] mr_F    xx
[L] 200-[ 3] mr_F    oo
[L] 200-[ 4] mr_F    yy
[L] 200-[ 5] mr_F    zz
[L] 200-[ 6] mr_F    relase6.com
[L] 200-[ 7] mr_F    wwdie.de.edja-FLT
[L] 200-[ 8] mr_F    Az-nR
[L] 200-[ 9] mr_F    AYOA-VFA
[L] 200-[10] mr_F    oldest_of_10_releases_downloaded
[L] 200 Command successful.
as usual, source code is incldued. get it at the iOFTPD scripts page..
mr_F_2 is offline   Reply With Quote
Old 04-20-2004, 02:48 AM   #10
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default

Nic einteresting little script, cheers for sharing it
EwarWoo is offline   Reply With Quote
Old 04-20-2004, 09:20 AM   #11
karmacoma
Junior Member
 
Join Date: Sep 2002
Posts: 27
Thumbs up

Very nice update to your script! It works perfectly here.
Thanks a lot!
karmacoma is offline   Reply With Quote
Old 05-07-2004, 03:24 PM   #12
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
Default

Hi mr_F
Your script is truly amazing!

One thing atm I miss about it.
I wonder if it could list all uploads directory's also, just like it can list downloaded directory's (site showlog user 20 -r)

Is this maybe possible or maybe something comming up?
odd is offline   Reply With Quote
Old 05-21-2004, 01:06 PM   #13
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

i'm in BC right now planting trees, i'll add that when i get home in september.
mr_F_2 is offline   Reply With Quote
Old 12-08-2004, 04:43 PM   #14
thunk
Member
 
Join Date: Oct 2004
Posts: 37
Default

suddenly getting:

[R] site showlog 50
[R] 550 Command failed.

command failed also with other command line options.

haven't changed anything in config whatsoever.
what can be the reason?
thanks.
thunk is offline   Reply With Quote
Old 12-08-2004, 05:56 PM   #15
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

site showlog 50 shouldn't work
unless you have a user named '50'

syntax is 'site showlog <user> #'


ie:
site showlog root 50
site showlog all 50
site showlog root -r
site showlog root 50 -r

etc etc
mr_F_2 is offline   Reply With Quote
Reply

Tags
script, showlog, site, wrote, xferlog

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GuildFTPd command set (import) Jesper Custom Commands 4 07-29-2011 12:41 AM


All times are GMT -5. The time now is 03:35 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)