Posted by Vide on March 31, 2008
If you are using a maintainance user executing scheduled cronjobs, maybe you’ve found yourself needing to report the result of these jobs to different email addresses. Everyone knows for sure the MAILTO parameter, as explained in the crontab(5) manpages.
But maybe you don’t know that MAILTO is interpreted sequencially, when it’s found, so you can have different recipients in the same crontab, like in this example:
MAILTO="user1@domain.tld"
* * * * * echo "abc"
MAILTO=”user2@domain.tld”
* * * * * echo “dfe”
so user1 will get mailed with "abc" and user2 with "dfe".
It works in the standard "cron" program, so for example you can use this tip in Debian or FreeBSD (and in other Unices to, I guess)
Posted in Debian, FreeBSD, Gentoo, Linux, Tips, Unix | Tagged: cron, Tips, Unix | Leave a Comment »
Posted by rga on March 26, 2008
This is not a howto/tip, it is only to remember the location of this hide option :D

Posted in Tips, Windows 2003 | Leave a Comment »
Posted by rga on March 7, 2008
Hello,
If you are lazy (as we are) or you don’t want to waste all your time adding DNS entries manually, you can use dnscmd via command line on Windows. It’s a nice way to put a large entries from a file or something that needs further configuration.
PROMPT> dnscmd help
dnscmd yourdnsserver /RecordAdd yourdomain.com mynewrecord A ip
so
(creates ftp.domain.com that points to 192.168.1.20)
dnscmd localhost /RecordAdd domain.com ftp A 192.168.1.20
(creates www.domain.com that points to 192.168.1.21)
dnscmd localhost /RecordAdd domain.com www A 192.168.1.21
You can use A, CNAME, PTR, TXT etc.
An example of a batch file putting entries in the same IP using loops.
PROMPT> type records.txt
record1
record2
record2
etc …
type dns.bat
@echo off
set dnshost=localhost
set domain=yourdomain.com
set type=A (dns type, PTR, CNAME etc)
set ipserver=192.168.1.20
echo “We are reading line by line records.txt”
for /f %%record in (records.txt) do dnscmd %dnshost% /RecordAdd %domain% %%record %type% %ipserver%
See you!
Posted in Tips, Windows 2003 | 2 Comments »