08-30-2013
Typesetting the variables as integers won't help.
You still are not showing us the part of the script where the error is.
First it's on line 26, then line 12. The trace shows "... != ..." but the code you have shown uses "... -ne ..."...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I got a script from one of the unix forums for reporting on filesystem usage and wanted to use it but it keeps giving me the following error.
0403-057 Syntax error at line 70
The script is shown below.
Pls help as I am new to UNIX.
# set -x
# D I S K S P A C E . S H
#
#... (2 Replies)
Discussion started by: OMONI
2 Replies
2. Shell Programming and Scripting
Can someone please tell me wht is wrong with the following peice of code?
I keep getting the following error -
0403-057 Syntax error at line 52 : `)' is not expected.
case "${option_count}" in
1) java -Xms256m -Xmx1536m "${APPLNAME}" "${ACTION_TYPE}" > "${LOGFILE}" 2>... (2 Replies)
Discussion started by: Veenak15
2 Replies
3. Shell Programming and Scripting
Hi
I am getting error 'ksh: 0403-057 Syntax error: `done' is not expected.' when running below script any one can provide inputs on this.
------------------------
if
then
echo "Report Name |Modification Date|Report File Size|Owner" >SOX_`date +'%Y%m%d'`
while read line
do... (2 Replies)
Discussion started by: karnatis
2 Replies
4. Shell Programming and Scripting
curr_time=`date +%Y%m%d%H%M`
curr_date=`date +%Y%m%d`
zero=0
script_path="/home/wccuser1/wcc/Scripts/bulk_file_ftp"
file_dir="/home/wccuser1/wcc/Bulk_Files"
todays_file_count=`ls -ltr | grep $curr_date | awk '{print $9}' | wc -l`
todays_file=`ls -ltr | grep $curr_date | awk '{print $9}'`
if... (5 Replies)
Discussion started by: gagandeep
5 Replies
5. Shell Programming and Scripting
I am getting the error :
rocfm/wls_subload/in/processed_files/tel_input_additional_checked_all_mandatory.txt: 0403-057 Syntax error at
line 1 : `|' is not expected.
>>>>ALL MANDATORY FIELDS CHECKING IS SUCCESSFUL count is 0
... (3 Replies)
Discussion started by: princetd001
3 Replies
6. Shell Programming and Scripting
Hi,
I am getting this error in my attached shell script, kindly help as soon as possible:
Thanks,
Andre (2 Replies)
Discussion started by: damoon
2 Replies
7. Shell Programming and Scripting
i dont know where m i mistaking.. please help me out with this issue :(
thanks in advance:rolleyes:
one_main()
{
a=100
while ;
do
clear
echo "##############################################"
echo ":: CURRENTLY YOU ARE IN RC AND OC MARKING ::"
echo... (1 Reply)
Discussion started by: Puneet sinha
1 Replies
8. AIX
Hi,
I am new to shell scripting.i am trying to mail after my backup completed.
Here is my shell script:
if ; then
egrep (ERROR|error|Error|RMAN-) ${/backup/RMANBKUP/spool/shelltest.log} > /dev/null
if ; then
RESULT_MSG=WARNING: Errors occurred during the ${ORACLE_SID} Rman... (3 Replies)
Discussion started by: faruqms
3 Replies
9. Shell Programming and Scripting
Hi,
While executing my code i am getting below Error:
./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected.
My code is :
#!/bin/ksh
PROGNAME=`basename $0`
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
OS=$(uname)
AWK="/usr/bin/awk"... (6 Replies)
Discussion started by: abodage
6 Replies
10. Shell Programming and Scripting
Hi Everyone,
I am getting strange behavior, same script runs fine without any error in one AIX machine, whereas on another it is throwing this error "0403-057 Syntax error at line 399 : `"' is not matched", I also ran the script in debug mode.
This is the output, still doesn't say anything.... (2 Replies)
Discussion started by: sid1987
2 Replies
LEARN ABOUT CENTOS
pmtrace
PMTRACE(1) General Commands Manual PMTRACE(1)
NAME
pmtrace - command line performance instrumentation
SYNOPSIS
pmtrace [-q] [-c value | -e command | -v value] [-h host] [-S state] tag
DESCRIPTION
pmtrace provides a simple command line interface to the trace Performance Metrics Domain Agent (PMDA) and the associated pcp_trace library.
The default pmtrace behavior is to provide point trace data to the trace PMDA, using the tag argument as the identifying name associated
with each trace point. The tag then becomes an instance identifier within the set of trace.point metrics.
The -e option allows an arbitrary command to be executed. This command will be measured as a transaction since it has well defined start
and end points. The information is made available through the trace.transact metrics.
Trace data can be sent to the trace PMDA running on host, rather than the localhost, using the -h option. This overrides use of the envi-
ronment variable PCP_TRACE_HOST.
The -q option suppresses messages from a successful trace, so that pmtrace runs quietly.
The -c option allows an arbitrary counter value to be exported through the trace.count metrics, while the -v option allows an arbitrary
floating point value to be exported through the trace.observe metrics
The -S option enables internal debugging and tracing. The value of state is a bit-wise combination of debug flags as defined in pmtraces-
tate(3), and may be specified using the decimal or hexadecimal syntax prescribed by strtol(3).
ENVIRONMENT
Since pmtrace uses the libpcp_trace library routines, the environment variables PCP_TRACE_HOST, PCP_TRACE_PORT, and PCP_TRACE_TIMEOUT are
all honored. Refer to pmdatrace(3) for a detailed description of the semantics of each.
FILES
$PCP_DEMOS_DIR/trace/pmtrace.c
source code for pmtrace
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO
pmcd(1), pmdatrace(1), pmprobe(1), PMAPI(3), and pmdatrace(3).
DIAGNOSTICS
All are generated on standard error and are intended to be self-explanatory.
The pmtrace exit status is always zero except when the -e option is in use, in which case the exit status of command is returned.
Performance Co-Pilot PCP PMTRACE(1)