Tags » Shell Script

Shell Script to Detect If the IP Address Is Googlebot

Recently I wanted to check if the IPs ( I had around 45) belonged to google bot. One option was to run host <ip> and… 110 more words

Linux

SHELL SCRIPTING: MY STORY, MY POST-INSTALL – PART 2

One thing I figure I should post is my app script referenced in the last post. This is what I use to install my favorite applications that is referenced in my post-install script for Fedora based distros. 187 more words

Linux

Shell Scripting: My story, my post-install - Part 1

If you’ve been following my blog for a while you will get a sense that I am a Linux enthusiast. Recent historical post will show that I have achieved a few Linux certifications. 947 more words

Linux

Simple shell script to know your Linux systems Interface IP's

Below is the simple shell script  which tells simply scan all interface in Linux system and tells which interface  have what IP assigned.

#!/bin/bash

ip r l |grep kernel|awk ‘{print $3}’|paste -sd” “|while read line… 51 more words

Installation

Unix shell script to find duplicate files in a directory including all subdirectories.

Solution:

This is basic approach to find duplicate files in a directory including its sub-directories in linux system. You could obtain much efficient solution using inbuilt utilities like fslint , fdups & rdfind etc. 181 more words

Duplicate Files

Run Scala script in Production

Steps

$ vim /mnt1/analytics/arvind/deploy/scala-redis.sh
#!/bin/sh
export HTTP_HOST=xx.y.zz.12
echo $HTTP_HOST
exec java -classpath "/mnt1/analytics/arvind/deploy/scala-redis.jar" "com.csscorp.restapi.RestServer" "$0" "$@"
!#
$ chmod -R 777 scala-redis.sh
$ nohup sh scala-redis.sh > ./scalaredis.log 2>&1 &
$ jps
22938 RestServer
22961 Jps… 20 more words
Mayura International