Search Results for: ftp

Here documents in bash explained

Introduction Input/output redirection is an extremely important aspect of writing bash shell scripts and working with the bash shell command line interface in general. A here document is a form of I/O redirection that tells the bash shell to read input from the current source until a line containing only the delimiter is seen. This delimiter is known as the limit string.  The limit string is preceded by the symbol << followed by the input commands or lines that we wish to redirect. We type the limit string again once we are done writing the input statements/commands that are to be redirected to indicate the end of the here document. The effect of enclosing a set of commands is that is redirects the output of the command block into the stdin of the program or command to which the stdin is directed to. Given below is the syntax for creating and using a here document: Command <<MyUniqueLimitString some text some more text MyUniqueLimitString In the above statements, the string MyUniqueLimitString serves as the limit string for the here document. Note: There should not be any space between the << symbol and the limit string. If there are any characters between the limit string and the << symbol then the here document is unlikely to work. Also the limit string that terminates the here document should not have any space...

Read More

What is Source Code Management or Version Control ?

  Definition of Source Code Management A Source Code Management (SCM) is a software tool used by programmers to manage the source codes. SCMs are used to give versions/revisions to the program. Each version is given a timestamp and includes the person responsible for the change. Even various versions can be compared and merged with other versions. This is why SCM is also referred to Version Control, Revision Control or Source Control. You would have probably made up your own version control system without realizing it. Got any of these? Here are some of mine. Ankesh_Resume_Sept2017.doc Ankesh_Resume_Dec2017.doc Ankesh_Resume_Mar2018.doc Its why we use “Save As” when we want a new file without changing the old one.   Basics of Source Code Management Whether you are writing a simple application or a collaborating on a large software development, source control is a vital component of the Software Development Life Cycle (SDLC). It allows you to track your code changes and also check the revision history of the code which is used when you need to roll back the changes. With Source Code Management, you can collaborate with your team or isolate your code and make changes without hampering the changes made by your teammates until the code is ready. Even the troubleshooting becomes easy as you know who made the changes and what are those changes. Source Code Management helps streamlined the...

Read More

How to resume unfinished yum transactions in Linux

Introduction The yum package manager maintains a history of all yum based transactions i.e. software installation, update and removal operations. This history is kept in an sqlite database (rpmdb) which is available in the /var/lib/yum/history/ directory. The transaction history in the rpmdb can be queried via the yum history command. We would also like to point out that a log of package installs, updates and removals is maintained in a text file as well located at /var/log/yum.log. The file provides one line descriptions about the yum related actions that were performed. But a very interesting facet of the yum transaction history is that transactions can be repeated and reversed and also incomplete transactions can actually be resumed. In this article we’ll be focusing on how we could resume incomplete yum transactions and complete them to fruition.   Demonstration With a basic understanding of how yum transactions are maintained, let’s perform a practical demonstration of how we could resume an incomplete yum transaction. Consider the following operation, we are just installing the openssl package on our system. What if during the installation we loose our network connectivity. This is just a single package so repeating the installation isn’t challenging but if it were an entire system update then redoing the entire task from scratch would be tedious. To simulate an interruption I hit the ctrl+c key to stop the yum...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.