≡ Menu

SathiyaMoorthy

5 Useful Perl 5.10 Features – Say, State, ~~, Defined OR

Even though Perl 5.10 is an old release, there are few things that was introduced in Perl 5.10, which you might find it useful. In the future article of this series, we’ll be covering new features of Perl 5.14 These are the 5 new Perl 5.10 features that you might find helpful. 1. Say it [...]

{ 3 comments }

2 Memory Regression Perl Scripts for Linux

During performance testing of your application you might want to perform some sort of memory regression testing. This article contains two memory regression scripts that are written in perl which will occupy a specific amount of memory for a certain amount of time, for your testing. 1. Basic Memory Regression Script To execute this script, [...]

{ 6 comments }

How to View Linux System Reboot Date and Time

Question: From the uptime command, I know how many days and hours the system is up and running. Is there a easy way to view the exact date and time on when the system was last rebooted? i.e Exactly from what date and time the system has been up and running? Answer: Uptime does give [...]

{ 9 comments }

Perl developers should understand how to use complex data structures effectively. In this article, I picked the top 5 useful posts about complex data structures from perlmonks, and gave simple examples on how to use them. 1. Perl Array of Arrays The following example defines a sample perl array of arrays. @tgs = ( ['article [...]

{ 4 comments }

Anacron is the cron for desktops and laptops. Anacron does not expect the system to be running 24 x 7 like a server. When you want a background job to be executed automatically on a machine that is not running 24 x 7, you should use anacron. For example, if you have a backup script [...]

{ 17 comments }

To run various open source applications you might have to install Apache, MySQL, PHP, and Perl (or some combination of these). For those who have difficulties installing and configuring these separately, XAMPP might be helpful. XAMPP is Apache distribution that contains MySQL, PHP and Perl. You really don’t need to worry about configuring MySQL, PHP, [...]

{ 7 comments }

How To Send Desktop Notifications on Ubuntu Using notify-send

notify-send command sends notification to the desktop. It is non intrusive. It does not ask user to press ok, and it does not take any control away from the user. This article explains how to send various types of desktop notifications using notify-send program. 1. Simple Notification notify-send can be used to send simple notification [...]

{ 11 comments }

How Do I ftp and Download files from a UNIX Shell Script

Question: I would like to execute ftp from inside a shell script. I would also like to provide the username and password required for the FTP file download inside the shell script itself. Can you explain me how to perform this bath ftp from a shell script? Answer: For downloading / uploading files using ftp [...]

{ 4 comments }