Archive for December, 2007
Making patch file
by Emre Tugriceri on Dec.26, 2007, under Programming
Creating patch file with diff.
shell > diff -Naur old_file new_file > patch_file
shell > diff -Naur gazlo.pl gazlo_new.pl > gazlo.patch
shell > patch < gazlo.patch
Powered by ScribeFire.
Compiling perl code
by Emre Tugriceri on Dec.26, 2007, under Programming
You can compile your perl codes with using perlcc. For example;
shell > perlcc -B some.pl -o any.pl
Powered by ScribeFire.
Dovecot Error
by Emre Tugriceri on Dec.26, 2007, under Mail
imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
64 bitlik bir sistem üzerinde dovecot ta imap ile ssl i aktif ettiğim zaman üstteki uyarıyı alıyordum. Problemin çözümü için /etc/dovecot.conf dosyası içerisinden;
“login_process_size = 32” olan değeri “login_process_size = 64” olarak değiştirmek yeterli.
Dovecot.conf içerisindeki açıklama ;
# Set max. process size in megabytes. If you don’t use
# login_process_per_connection you might need to grow this.
Powered by ScribeFire.
File Replace with sed
by Emre Tugriceri on Dec.24, 2007, under Shell
-i[SUFFIX], –in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
[root@etugriceri sil2]# sed -i ‘s/LAND/AIR/i’ *
Powered by ScribeFire.
Fetchmail example
by Emre Tugriceri on Dec.24, 2007, under Mail
Example .fetchmailrc file ;
[root@mail Maildir]# cat /root/.fetchmailrc
defaults
fetchall
keep
set no bouncemail
poll 127.0.0.1 protocol IMAP
user efsaneuser@superdomain.com there with password xxxxx is efsane.user@superdomain.com here
smtphost 192.168.0.10
———————————————–
if you want to fetch old mails with subfolders, you can try this settings.
[root@mail Maildir]# cat /root/fet.sh
for gonder in “INBOX.Ocak” “INBOX.Subat” “INBOX.Mart” “INBOX.Nisan” “INBOX.Mayis” “INBOX.Haziran” “INBOX.Temmuz” “INBOX.Agustos” “INBOX.Eylul” “INBOX.Kasim” “INBOX.Aralik”
do
fetchmail -r $gonder
done
Powered by ScribeFire.