User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 455,998 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,844 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 21 of 21
Search took 0.01 seconds.
Posts Made By: vgersh99
Forum: Shell Scripting Jun 7th, 2005
Replies: 6
Views: 2,287
Posted By vgersh99
Re: Test with "[[ ... ]]" executing both, the && and the || clause

Look at this: [[ vs ] (http://groups-beta.google.com/group/comp.unix.shell/browse_thread/thread/82a34ba19f75f69d/44e3faaf2f037e80?tvc=2&q=bash:+%5B%5B+%5D%5D+vs.+%5B+%5D+&hl=en&fwc=1)
Forum: Shell Scripting Jun 7th, 2005
Replies: 6
Views: 3,372
Posted By vgersh99
Re: Script needed to check OID values

'normal' as in opposite of being 'ABnormal'? ;)

This is just one of the possible formats. The other format being the file containg the OIDs one per line.
Forum: Shell Scripting Jun 7th, 2005
Replies: 6
Views: 3,372
Posted By vgersh99
Re: Script needed to check OID values

if you can [???] create a file MIB file with just FULL OID specification - one OID [to snmpget] per line. Some MIB tools allow you to do that. Having file in this format will greatly simplify the...
Forum: Shell Scripting Jun 6th, 2005
Replies: 6
Views: 3,372
Posted By vgersh99
Re: Script needed to check OID values

Translate all the MIB(s) your device supports into a a file of scalar OIDs - one OID per line
Depending on the tools you have [snmpget...] iterate through the OID file executing one snmpget [or...
Forum: Shell Scripting May 27th, 2005
Replies: 1
Views: 2,755
Posted By vgersh99
Re: problem in reading a file

why don't you show what you've tried AND where exactly you're having problems?
Forum: Shell Scripting May 20th, 2005
Replies: 8
Views: 2,981
Posted By vgersh99
Re: Removing entries

look into 'man comm'
Forum: Shell Scripting May 18th, 2005
Replies: 1
Views: 3,815
Posted By vgersh99
Re: web page statistics - my first bash script

use awk's associative arrays index by the first field [ip address].
Forum: Shell Scripting May 5th, 2005
Replies: 2
Views: 2,169
Posted By vgersh99
Re: what's the meaning of " ${1:-} "?

doing 'man ksh' yields:
[/QUOTE]
Forum: Shell Scripting May 5th, 2005
Replies: 2
Views: 2,169
Posted By vgersh99
Re: what's the meaning of " ${1:-} "?

[quote man ksh]
${parameter:-word}
Use Default Values. If parameter is unset or null,
the expansion of word will be substituted; other-
wise, the...
Forum: Shell Scripting May 2nd, 2005
Replies: 3
Views: 20,550
Posted By vgersh99
Re: Replacing text within a file using awk

/bin/echo "%s/cool/$1/g\nwq!" | ex -s file
Forum: Shell Scripting Jan 7th, 2005
Replies: 5
Views: 5,764
Posted By vgersh99
Re: Arping script

this is a hint/template how to use 'trap' with the interrupt [eg ^C].
Forum: Shell Scripting Dec 29th, 2004
Replies: 1
Views: 2,279
Posted By vgersh99
Re: GC Tags file for a large project

find ....whatever... | xargs gctags ...whatever....
Forum: Shell Scripting Dec 26th, 2004
Replies: 7
Views: 6,456
Posted By vgersh99
Forum: Shell Scripting Dec 7th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Forum: Shell Scripting Dec 7th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Re: Subshell Problem, syntax error...Help please!

if that's the assumption, then the way to implement it is:


./pcx /tmp/kismet_dump $1

stat = ${?}
.....


This is assumpting './pcx' [whatever that is] returns properly formated return codes.
Forum: Shell Scripting Dec 7th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Re: Subshell Problem, syntax error...Help please!

your culprit is this:

while [ $stat -gt 0 ]


seem that '$stat' does not get assigned any number. When the comparison is made there's nothing to compare against '0'.

instead of using
set count =...
Forum: Shell Scripting Dec 6th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Re: Subshell Problem, syntax error...Help please!

put the whole script in debug:

substitue:

#!/bin/ksh


with:

#!/bin/ksh
Forum: Shell Scripting Dec 6th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Re: Subshell Problem, syntax error...Help please!

using 'vi':
1. place your cursor on the closing ')' on the offinding line
2. hit '%' - the cursor will move to the MATCHING '(' - make sure it is what it's supposed to be
3. do the same for any...
Forum: Shell Scripting Dec 6th, 2004
Replies: 13
Views: 6,587
Posted By vgersh99
Re: Subshell Problem, syntax error...Help please!

change:
set count = 'expr $count + 1'

TO:

count = $(( count + 1 ))

This is somewhat cosmetic

You need to check your balanced parents BEFORE the offending line. So far I don't see anything...
Forum: Shell Scripting Dec 6th, 2004
Replies: 5
Views: 5,764
Posted By vgersh99
Re: Arping script

#!/bin/ksh

typeset iter=0

trap 'echo "$(date): iter->[${iter}]";exit' INT;

while :
do
ls /tmp > /dev/null
iter=$(( iter + 1))
Forum: Shell Scripting Nov 24th, 2004
Replies: 2
Views: 6,016
Posted By vgersh99
Re: EXHAUSTED... using sed and back references

sed -e 's/^\(.*\) \(.*\)$/\2 \1/g'
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 9:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC