Yeah, that works - THANKS! I can see the integer comparing itself againist 11 - very nice. but the script is still ending and not notifying the update (when a server comes back up). The script is supposed to compare from the last time it ran and current time it runs and update files with the results and compare them to see if there are any changes. If there are, it should email the updates. Would you mind taking another look?
Current output when script runs
Here is the code of the script where it compares:
HI All
Some body wrote to me this Telnet Script :
#!/opt/perl/bin/perl
$ip = $ARGV;
die ("IP must be passed as an argument. $!\n") unless defined($ip);
use Net::Telnet ();
$handle = new Net::Telnet (Timeout => 10, Prompt => '/.*(#|>|\))\s*$/');
$handle->open("$ip");... (10 Replies)
So I am new to unix, and actually anything outside drag and drop with the mouse (been learning for about a week so far) . I have been using the foreach command in tcsh because I am working on a group of files. Basically what I need is to insert part of the filename as the first line in the file.... (0 Replies)
Hi.
The below part of my bash script kicks out the following error message:
$ ./extract_eod_report_stats_new.sh 2010-04-23
./extract_eod_report_stats_new.sh: line 204: syntax error near unexpected token `('
./extract_eod_report_stats_new.sh: line 204: `TRANSACTIONS_RECEIVED_TOP=`grep... (6 Replies)
Hi All
i am creating a script to perform a nslookup on a specified host (so in otherwords it will be: zong(script name) 172.x.x.10(ip adress). i am scripting in tcsh. unfortunately i think i am doing something wrong as it keeps giving me syntax error. can someone help?
@ num=1
set arg='ping... (2 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
So what i am trying to do is write a script that takes in any number of scrambeled words and unscrambles them.
I have already addressed the issues of partial matches, exits silently if there are no matches, and finds words regardless of case that they were input. but while trying to get it so... (3 Replies)
#!/bin/bash
glist=`cat /etc/group | cut -d ":" -f1,4`
ulist=`cat /etc/passwd | cut -d ":" -f1,6`
for i in $glist
do
echo "$glist"
done
for i in $ulist
do
echo "$ulist"
done
chkgrp=`cat /etc/group | cut -d ":" -f1`
for a in chkgrp
do (4 Replies)
Gents,
This is a follow up to my previous post:
https://www.unix.com/shell-programming-scripting/217521-python-newbie-question-regex.html
Here the latest function that I am having issues with:
def find_all_flvs(url):
soup = BeautifulSoup(urllib2.urlopen(url))
flvs =
for... (2 Replies)
Hi,
does the expect script tries to match for everyline on the screen irrespective of the prompts???
spawn ./Inst.sh
expect "path? (Y/N)"
send "Y\r"
expect "folder path"
send "$DIR1\r"
expect "path? (Y/N)"
send "Y\r"
expect "folder path2"
send "$DIR2\r"
After the installer... (11 Replies)