Pages
Monday, January 18, 2016
Tuesday, January 12, 2016
How to get Apache authenticated using OS user ?
Home
Try below link it will give you more details
https://code.google.com/p/pwauth/
Back To Top
Home
Try below link it will give you more details
https://code.google.com/p/pwauth/
Back To Top
Home
Tuesday, January 5, 2016
Trick to keep your ssh session active
For a person working on a Unix based OS over a ssh connection, SSH
session timeout can be a pain area. If person is using putty for connection
Unix OS over ssh then session can become inactive if kept idle for a longer
time. So person needs to keep session alive by execution of some command or
reconnect session manually.
To get rid of this inactivity of ongoing session irrespective of its
idle or not, putty has an option of “Sending
null packets to keep session active” by setting some desired value you can
keep your session active, below is the screenshot of putty configuration
option.

Back To Top
Home
Monday, January 4, 2016
Capture current directory within a shell script
Home
There are various scenarios where you need to ensure that all supporting components of a shell script are written in the same directory where script has been placed.
In order to achieve that easy way it to initialize a variable at start of script with value as parent folder of the shell script. But hard-coding of it can be a pain area in later on stages.
So to make it dynamic below syntax can be utilized, this has been tested and used in various implementations worth a try.
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Enjoy !!
Back To Top
Home
There are various scenarios where you need to ensure that all supporting components of a shell script are written in the same directory where script has been placed.
In order to achieve that easy way it to initialize a variable at start of script with value as parent folder of the shell script. But hard-coding of it can be a pain area in later on stages.
So to make it dynamic below syntax can be utilized, this has been tested and used in various implementations worth a try.
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Enjoy !!
Back To Top
Home
Sunday, January 3, 2016
Subscribe to:
Posts (Atom)