3
Shell script for monitoring a list of IP'sview story

http://nixcraft.com – Hi All, I am new for linux shell script, i ve a task to monitor a list of IP's Listen on the Particula Port. I ve list of IP's,from that list i need to monitor. If the prticular in the list is not listening on given port num then send a alert mail. Can any one guid me to write a shell script This is the script for IP in `cat /root/IPList`; do netstat -alnp | $IP | grep listen | grep 5654 don (HowTos)

5
Rsync on Multiple web serverview story

http://nixcraft.com – Hi, How I rsync all files on my REPO to my 5 server using shell script? Current setup : REPO--> Web 1, Web 2, Web 3, Web 4, Web 5 I have 5 IP's 192.168.0.20, 192.168.0.21, 192.168.0.23, 192.168.0.24, 192.168.0.25 My Current Script. ./SyncNow #!/bin/bash rsync -apz --exclude=files/ --exclude=config.php --progress --rsh='ssh -p1122' /var/www/html/ root@192.168.0.25:/var/www/html/ Thanks (HowTos)

4
Reserve resources (memory and processes)view story

http://www.unix.com – I have a shell script which sets some variables and then calls modules of a program in succession, one by one. Problem is that the script is executed on servers with many users, so sometimes the script starts running, runs for 10 minutes and then breaks due to lack of resources when other users run memory intensive processes. (HowTos)

4
global bash shell functionsview story

http://www.linuxquestions.org – Hi, I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted: Code: $ tail -n 3 /etc/bashrc echotm () {   echo "[`date`] $@" } $ echotm hello world [Mon Sep 13 17:15:28 HKT 2010] hello world $ cat a.sh #!/bin/sh echotm hello world $ sh a.sh a.sh: li (HowTos)

6
Best way to search file or string for duplicate entriesview story

http://nixcraft.com – I have a very large .conf file which I am adding and removing entries from daily. What is the best method for checking this for duplicate entries. thank you I am running RHEL 5 but prefer to do this from the shell (HowTos)

3
Mapping with series from master file and calculate countview story

http://www.linuxquestions.org – Hi All, My shell script is calculating the count of each shortcode series wise whose sample output is as follows: Code: -------------------------- 56882 9124 1 9172 1 9173 4 8923 6 9175 1 9058 2 7398 2 -------------------------- 58585 series count 9124 1 8858 17 9061 21 9125 21 9126 7 9171 106 9172 4 7899 4 9173 7 9175 14 9059 92 7871 94 7396 183 7398 386 9060 13 ------------------------- (HowTos)

6
Configuration (new user defaults) assistance needed.view story

http://forums.opensuse.org – I am working on setting up my home network to be centrally managed from my server (Opensuse 11.3). (Distributions)

5
Trouble Adding a shell script to Openbox Menuview story

http://crunchbanglinux.org – I'm having some trouble getting a shell script to execute from the Openbox menu.  The script runs fine from Thunar.  Here is the section in question from my menu.xml:<item label="MOOS Project Viewer"> <action name="Execute"> <execute> /home/tj/.MOOS/MOOS.sh </execute> </action> </item> (HowTos)

4
run a shell script as rootview story

http://www.linuxquestions.org – I know I can use sudo ./shellscript.sh then enter the root password and the script will run. My question is can I set the permissions on the script so it will run as root when I click on the desktop ICON. (HowTos)

3
System Info In Linuxview story

http://www.linuxquestions.org – Hello, how do you obtain system info like the CPU cache sizes and core speeds from the shell? Thanks (HowTos)