Coder Social home page Coder Social logo

glutil's Issues

dirlog rebuild/update follows symlinks even if not told to do so

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!

dirlog update - nuked dirs duplicated

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*

delay

is it possible to artificially insert a delay?

macro imdb-installch: could not compile exec string

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`'

loopexec inexistant

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. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.