Tugriceri Web Notes

Archive for December, 2007

Making patch file

by 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.

Comments Off on Making patch file more...

Compiling perl code

by 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.

Comments Off on Compiling perl code more...

Dovecot Error

by 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.

Comments Off on Dovecot Error more...

File Replace with sed

by 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.

Comments Off on File Replace with sed more...

Fetchmail example

by 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.

Comments Off on Fetchmail example more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...