variables

KSH: Import File With Variables and Functions

by Vivek Gite on September 20, 2011 · 0 comments

How do I import variables and functions defined in lib.ksh script to another ksh script called setup.ksh under Linux / Unix like operating systems? How do I execute commands from a file in the current KSH shell?

{ 0 comments }

How do I auto Logout my shell user in Linux after certain minutes of inactivity?

{ 0 comments }

Bash String Concatenation

by Vivek Gite on November 18, 2010 · 2 comments

How do I join two strings under BASH? I have two strings stored in two different variables (_p=/delta and _u=aqua) and how do I join this and assign it to another variable in bash?

{ 2 comments }

I‘ve tons of images, css and javascript hosted at backend server IP 192.168.1.5 and 192.168.1.6. How do I make sure nginx reverse proxy load balancer always send all http_user_agent requests coming from “Mozilla” to server 192.168.1.5 and MSIE to server 192.168.1.6 only?

{ 1 comment }

How do I determine if a function called foo() is already defined in a bash script or not? If a function called foo() is defined just call it or show an error message?

{ 4 comments }

Bash Shell Script Function Examples

by Vivek Gite on January 27, 2009 · 0 comments

How do I create a shell script function using Bash under UNIX / Linux operating systems?

{ 0 comments }