Tag Archives: linux
How to send email using Perl
You can easily send email with attachments using Perl. I have used MIME LITE here. Here is an example of how to send an HTML email with a PDF attachment:… Read more
List files under a directory using Perl
To list all the files in a directory, here is what you should do in Perl: #!/usr/bin/perl use strict; use warnings; my $dir = ‘/tmp’; //path name of your directory… Read more
host and dig commands – DNS lookup utility
Both host and dig commands help in DNS lookup in Linux systems. 1) host commands host sitename.com host -t type sitename.com Different types are IP address (a), mail exchanges (mx),… Read more
Installing OCI8 On UNIX/LINUX
If you need to connect php with oracle database then you can use OCI which is an extension for providing APIs to Oracle database management system. Requirement * PHP *… Read more
Password Protecting folder and pages with htaccess
If you wish to create a folder or pages that should be accessible to only authorized users, then you might want to user htaccess on a Linux machine. Follow these… Read more
No Password SSH
Here are the steps to do ssh from one machine to another without using password: user@local:~/.ssh$ ssh-keygen -t dsa -f id_dsa (if not done already!) Generating public/private rsa key pair…. Read more
./sqlplus: error while loading shared libraries: libsqlplus.so
While connecting to Oracle database using sqlplus, you can get an error (./sqlplus: error while loading shared libraries: libsqlplus.so). There can be various reasons for this issue. After you unzip… Read more
iptables in Linux
iptables is a tool used in linux distributions to control kernel’s netfilter’s firewall. To start off with there are three real “chains” which iptables uses: INPUT chain – used to… Read more