Category: shell (Page 1 of 2)

Putty keep alive session without connection timeout

Last updated on August 27th, 2024 at 09:14 amWhen I connect to my linux / unix server using putty it timeouts after sometime automatically. Basically this happens when I do other task while keeping the putty session idle, during this time it popup an error sometimes stating that the session has timeout. This is very […]

Check if bash array contains a value

Last updated on August 27th, 2024 at 01:16 pmAn array is like a list of elements, you can refer to specific elements in an array with indices. For instance myarray[i] refers to the i th element in an array named myarray. Here i am using korn shell. We can use the below shell script in […]

How to change shell echo command color in linux

Last updated on February 21st, 2022 at 07:47 amWe are going to discuss in detail how to change output color of shell echo command in linux, This is list of color codes for mostly used colors like White, Red, Yellow, Grey etc., How to implement this? It is very simple, Inside your shell script declare […]

How to send html email using shell script

Last updated on October 4th, 2022 at 12:59 pmIt is a good idea to use sendmail command to send an html email from a linux or unix server. By using this command the email content will be displayed in HTML format (not just HTML code). In this tutorial I will be covering two options to […]

« Older posts