11-23-2005
Thanks
Thank you very much !
Was fast too...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In Unix script, how to get a "date - 1" ie, yesterday? (4 Replies)
Discussion started by: AC
4 Replies
2. Shell Programming and Scripting
hi,
i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies
3. Shell Programming and Scripting
hello
i have obtained the current date ..
current_date=date "+%m/%d%y"
and i have another date ,stored in my log file which i have already retrieved. i want to store the subtraction in a varible called diff.
diff=log_date - currentdate
ex: log_date=01/28/11
current_date=... (3 Replies)
Discussion started by: urfrnddpk
3 Replies
4. Shell Programming and Scripting
my code is like this
count=`cat /filecount.txt | tail -1 |head -1| awk '{print $1}'` ###file is having value 264 ####
echo "actual count = $count"
exact_count=`expr $value \* 24`
echo "exact_count= $exact_count"
diff=`expr "$exact_count" - "$count"`
a= exact_count - count
... (8 Replies)
Discussion started by: sagar_1986
8 Replies
5. Shell Programming and Scripting
Hello friends,
I am new on linux, i am facing issues on below script.
#!/bin/sh
current=1355147377
echo $current
last_modified=1354537347
echo $last_modified
DIFF='expr ($current - $last_modified)'
echo $DIFF
Please view this code tag video for how to use code tags when posting... (8 Replies)
Discussion started by: sanjay833i
8 Replies
6. Shell Programming and Scripting
I have 2 files:
file1.txt contains
/html/mybook/Charts/143712/reptiles.pdf
/html/mybook/Charts/198459/spices.pdf
/html/mybook/Charts/198459/fresh_nuts.pdf
/html/mybook/Charts/123457/dome_anim.pdf
/html/mybook/Charts/123457/vegetables.pdf
/html/content/3DInteractive/174091/CSPSGGB.html
... (6 Replies)
Discussion started by: Jojan Paul
6 Replies
7. Shell Programming and Scripting
In the bash below I am asking the user for a panel and reading that into bed. Then asking the user for a file and reading that into file1.Is the grep in bold the correct way to apply the selected panel to the file? I am getting a syntax error. Thank you :)
... (4 Replies)
Discussion started by: cmccabe
4 Replies
8. Shell Programming and Scripting
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
9. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT DEBIAN
smokeping_matchers_exploss
..::lib::Smokeping::matchers::ExpLoss(3) SmokePing ..::lib::Smokeping::matchers::ExpLoss(3)
NAME
Smokeping::matchers::ExpLoss - exponential weighting matcher for packet loss with RMON-like thresholds
DESCRIPTION
Match against exponential weighted average of last samples, thus new values are more valuable as old ones. Two thresholds - rising and
falling - produce hysteresis loop like in RMON alert subsystem. If the average reaches the "rising" threshold, matcher go to the "match"
state and hold It until the average drops under the "falling" threshold.
Call the matcher with the following sequence:
type = matcher
pattern = CheckLoss(hist => <hist>, rising=><rising>
[,falling => <falling>] [,skip=><stat>] [,fast=><fast>])
Arguments:
hist - number of samples to weight against; weight will be disposed with
exponetial decreasing manner from newest to oldest, so that the
oldest sample would have 1% significance;
rising - rising threshold for packet loss, 0-100%
falling - falling threshold for packet loss, default is <rising>
skip - skip <skip> number of samples after startup before "fire" alerts.
fast - use <fast> samples for fast transition: if the values of last <fast>
samples more then <rising> - take "match" state, if less then
<falling> - take "no match" state.
Note:
If the actual history is less then <hist> value then this value is taken
as the actual history.
COPYRIGHT
Copyright (c) 2008 Veniamin Konoplev
Developed in cooperation with EU EGEE project
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
AUTHOR
Veniamin Konoplev <vkonoplev@acm.org>
2.6.8 2012-02-26 ..::lib::Smokeping::matchers::ExpLoss(3)