There aren’t many Inotify daemons available that can work recursive and offer a descent flexibility regarding Inotify signals. For basic rsync operations, lsyncd isn’t that bad but it isn’t that flexible for system administration. The fact that it is written … Continue reading
Tag Archives: Dev
If you have a hosting account at Hetzner with free backup space, you can not access this backup volume using rsync. One way of creating a simple backup, is by using the tar command with the incremental option. You will … Continue reading
Below is a small Perl example how to check for NFS mounted shares on a Linux host. The script does not need any specific modules, and makes use of the /etc/mtab file. #!/usr/bin/perl use strict; use warnings; my @mount_points = … Continue reading
There are definetly a few modules on CPAN which will allow to easily change file permissions in Perl, but you do not always have the chance or possibility to install CPAN modules. The following examples explain how to change the … Continue reading
In some situations, you need to watch a directory for uploaded files and move/process them immediately. Many scripts work in a polling kind of way, which will check every x amounts of seconds for new files. This is nowadays completely … Continue reading
When you are not using Debian unstable or some kind of Linux distro that hasn’t got the latest version of the dmesg command, you will not be able to execute ‘dmesg -T‘ to see human readable timestamp in the output. … Continue reading
Recently I have been asked to write a Syslog event generator, but not just a normal syslog generator, it had to be able to generate events coming from different hosts. The normal ‘logger’ command sends Syslog messages using the machine’s … Continue reading
Geotagging photos used to be a very expensive operation, since you needed special equipment, heavy antennas and especially: a lot muscles to carry all your extra gear. Nowadays, a lot of people have iPhone or like me, an Android phone. … Continue reading
I just discovered this very interesting article about Perl, CGI, Template and Ajax using JSON. I’m going to use to beef up my image browser which I quickly wrote to simply the contents of directory full with images. (can be … Continue reading
On Debian based distributions, a handy tool called dh-make-perl can be installed to ease the installation of CPAN Perl modules on the system. This tool will create a Debian package of the CPAN module, and can also install this package … Continue reading