nixnodes / glutil Goto Github PK
View Code? Open in Web Editor NEWglFTPd binary logs utility
License: GNU General Public License v3.0
glFTPd binary logs utility
License: GNU General Public License v3.0
Hi,
First I would like to say that it's an excellent tool for glftpd you coded here. Thanks for sharing it.
In an attempt to use it to update a dirlog, I've found out that it's following symlinks even I'm not using -y, --followlinks Follow symbolic links (default is no)
Here is an example:
root@box:# chroot /glftpd /bin/glutil --folders=/etc/glutil.folders.incoming -r -u -v
NOTICE: /ftp-data/logs/dirlog: explicit write pre-caching enabled
NOTICE: /ftp-data/logs/dirlog: created data backup: /ftp-data/logs/dirlog.bk
NOTICE: requested dirlog update only
SCANNING: '0DAY', depth: 2
DIRLOG: /site/incoming/0DAY/today/SOME.DIR1 - 217 Mbytes in 14 files - created 03 Apr 2017 00:43:55 by 200.1100 [0]
DIRLOG: /site/incoming/0DAY/today/SOME.DIR2 - 399 Mbytes in 23 files - created 03 Apr 2017 00:47:38 by 200.1100 [0]
DIRLOG: /site/incoming/0DAY/today/SOME.DIR3 - 2 Mbytes in 3 files - created 03 Apr 2017 14:16:56 by 245.200 [0]
... etc
today
in this case is a symlink
glutil.folders file says :
incoming/0DAY 2
Any idea what I'm doing wrong ?
Thanks!
Hi,
Just noticed after running multiple times the dirlog update that it readds nuked directories even if they are already in the dirlog:
DIRLOG: /site/incoming/stuff/DIR1 - 167 Mbytes in 14 files - created 26 Mar 2017 07:44:01 by 206.500 [1]
DIRLOG: /site/incoming/stuff/DIR2 - 196 Mbytes in 16 files - created 26 Mar 2017 07:44:00 by 206.500 [1]
DIRLOG: /site/incoming/stuff/DIR3 - 218 Mbytes in 18 files - created 26 Mar 2017 07:44:01 by 241.900 [1]
[12:39:22] [L] site search DIR1
[12:39:22] [L] 200- (Values displayed after dir names are Files/Megs/Age)
[12:39:22] [L] 200- Doing case-insensitive search for 'DIR1':
[12:39:26] [L] 200- /incoming/stuff/DIR1 *NUKED*
[12:39:26] [L] 200- /incoming/stuff/DIR1 *NUKED*
[12:39:26] [L] 200- /incoming/stuff/DIR1 *NUKED*
[12:39:26] [L] 200- /incoming/stuff/DIR1 *NUKED*
Edit src/Makefile
and edit:
CFLAGS = -Wall -O2
CFLAGS = -Wall -O2 -fcommon
It's due to this change: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678
https://github.com/nixnodes/glutil/blob/master/scripts/fxp_sync.sh
LFTP_SYNC_OPTS="set ssl:verify-certificate off;
set ssl:verify-certificate off;
two times defined the same?
Would it be possible to add tvmaze support?
is it possible to artificially insert a delay?
Hi,
It seems there might be a syntax error in the imdb-installch macro:
box:# /glftpd/bin/glutil -m imdb-installch
result
ERROR: MACRO: [2603]: could not compile exec string: '{exe} -noop --preexec `! updatedb -e "\{glroot\}" -o /tmp/glutil.mlocate.db && echo "updatedb failed" && exit 1 ; li="/bin/perl /bin/curl /bin/xmllint /bin/date /bin/egrep /bin/sed /bin/expr /bin/recode /bin/awk"; for lli in $li; do lf=$(locate -d /tmp/glutil.mlocate.db "$lli" | head -1) && l=$(ldd "$lf" | awk '{print $3}' | grep -v ')' | sed '/^$/d' ) && for f in $l ; do [ -f "$f" ] && dn="/glftpd$(dirname $f)" && ! [ -d $dn ] && mkdir -p "$dn"; [ -f "\{glroot\}$f" ] || if cp --preserve=all "$f" "\{glroot\}$f"; then echo "$lf: \{glroot\}$f"; fi; done; [ -f "\{glroot\}/bin/$(basename "$lf")" ] || if cp --preserve=all "$lf" "\{glroot\}/bin/$(basename "$lf")"; then echo "\{glroot\}/bin/$(basename "$lf")"; fi; done; rm -f /tmp/glutil.mlocate.db`'
Hi,
Just wanted to let you know this:
From the FAQ file
This will print out the users connected to the site and place in an organized table and loop it for 10 seconds,
clearing the screen each time.
glutil -w --comp --loop 10 --loopexec clear
and from ChangeLog
* - + --loopexec (rev. 14)
but it seems this argument doesn't exists
/glftpd/bin/glutil -w --comp --loop 10 --loopexec clear
ERROR: [-2] invalid option '--loopexec'
See --help for more info
Also i've searched the code for loopexec, nothing is returned.
Maybe you should remove the examples from FAQ if this is deprecated. :)
Is there a way to exclude scanning directories like /private ?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.