How do I find out the size of the bss, text segment and data segment for each object or binary file under Linux operating systems?
{ 2 comments }
How do I add Autocomplete support to gedit text editor under Linux Gnome desktop operating systems?
{ 12 comments }
I want to get an alert when my disk is full under UNIX and Mac OS X? How do I set a a specified threshold and run the script via cron?
{ 26 comments }
If var is defined AND NOT EMPTY, use var, otherwise set a default variable under Bash. For e.g. my script needs a parameter for output variable. It can be text or html. I set it as follows in my script
output=$1 # either text or html
However, sometime user forget to pass the parameter to my shell script and my enter logic fails. So how do I set default value to text, if no parameter passed?
{ 6 comments }
I own a small business website. However, bots started to abusing my forms such as contact.php. How do I stop bots bots from abusing my site? How do I tell if PHP form is submitted by a person or a script?
{ 24 comments }