Array ( [category_name] => shell-scripting [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [tag] => [cat] => 1206 [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 1 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [post_type] => [posts_per_page] => 10 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [order] => DESC [orderby] => date )
Shell Scripting

Learn CGI scripting using BASH in Linux Shell Scripting

Web programming has been on a long journey. From the early static HTML files to the very first scripting languages like PHP, Python, Cold Fusion, Java, ASP, to the modern technologies like .net, and Ruby, and finally AJAX-based single page applications like YouTube and Gmail, among others. This is all great. But have you ever thought

Shell Scripting

Learn about Netcat: your network Swiss knife in Shell Scripting

Do you want to test connectivity to your mail server on port 25? Do you want to make a quick port scan? Perhaps you want to open a local port on your server to listen for incoming connections. The topic of this article is about a command that can and will offer you all this

Shell Scripting

Learn about Crontab and at job in Linux Shell Scripting

How many times have you found yourself doing a repetitive task at a specific time? Do you remember when you found that the database hosted on your server is generating a large amount of logs, which are gradually eating the free space on the disk? Back then, you talked with the DBA team and they

Shell Scripting

How to automate FTP transfers in Linux Shell Scripting

Whether you are responsible for uploading files regularly to a remote web server, or syncing configuration files among a number of machines, most of the time you’ll find yourself using the FTP protocol. But what about automating the process? Could you simply add a shell script to a Crontab job and let it take care

Shell Scripting

Learn More about Effective One-Liners in Linux Shell Scripting

In the previous article, we had a talk on One-Liners. We have seen how a composite statement that is as short as fitting in one line can achieve very useful things that may need a five or ten-lines script to do. In this article, we are going to complete what we have started in the

Shell Scripting

Learn about Effective One-Liners in Linux Shell Scripting

Do you remember what the definition of Shell Scripts is?! I told you in our first article in this series that a Shell Script is a collection of Linux commands, stored in an ordinary text file, and executed in sequence. So, shell scripts merely consist of commands. Sometimes, a command or a combination of several

Shell Scripting

Generate Random Passwords in Shell Scripting via Character Array Method

In the previous article, we have learned how to generate random passwords using two methods: 1. The mkpasswd command. 2. Calculating the Hash for a random data (or number), then cutting characters (with length matching the required password length) from the resulting hash. Now, consider the case wherein the Linux (or UNIX) distribution running on

Shell Scripting

Learn to Generate Random Data and Password in Linux Shell Scripting

After learning how to generate random numbers, we are going to learn how to generate random data, and random passwords. Some of the concepts in this article are dependent on what we have learned in the previous one. So please, if you have not read it yet, go back one step and read it first.

Shell Scripting

Generating Random Numbers in Linux Shell Scripting

There will be cases wherein you need something to be random: a random number, a random sequence of characters, a random file name, or a random password. For this purpose, you need to know the methods that will help you generate the random thing you need. Randomization will be the subject of our talk today.

Shell Scripting

Learn How To Write Interactive shell scripts

An interactive script is a one that interacts with the user and requires user input. In this type of scripts, data flow in both directions (from the user to the script, and from the script back to the user). When the user types the required input, the script first validates the input to make sure