Sponsored Content
Top Forums UNIX for Dummies Questions & Answers 0403-057 Syntax error at line 70. pls help Post 78488 by OMONI on Wednesday 20th of July 2005 04:37:53 AM
Old 07-20-2005
Thanks very much

That seems to have worked now but the problem I am having now is that it does not return any output when run.
The diskspace file contains the following:
# D I S K S P A C E . T A B
#
# Lookup file for the 'diskspace.sh' program.
# Format: <filesystem> <flag_percent> <alarm_percent>
#
/ 60 80
/opt1% /aixpatch
/orasys1 60 95
/oradat1 95 95
/oraind1 60 95
/arch1 70 95
/stndarch
/redo1 50 95
/redo2 50 95
/orabin1 50 95
/orabin2 60 96
/backup 70 95
/exports 70 95
/oracds 60 90
/orabase 60 90

---------END of DISKSPACE.TAB
Now when I run this script I expect it to return some file systems with thier usage as they are over the limit.
I am running this on IBM AIX. Can anyone please help me identify why its not returning any values.
Thanks alot for all your help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

get_source[34]: 0403-057 Syntax error at line 66 : `"' is not matched.

Hi, I am getting this error in my shell script, kindly help as soon as possible: ################################################################### # Main body of program ################################################################### . /saptech/scripts/common/declare # Defines... (1 Reply)
Discussion started by: vishal_ranjan
1 Replies

2. Shell Programming and Scripting

0403-057 Syntax error at line 52 : `)' is not expected.

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

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies

4. Shell Programming and Scripting

[Solved] 0403-057 Syntax error `<' is not matched

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

0403-057 Syntax error

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

0403-057 Syntax error at line 169 : `"' is not matched.

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

0403-057 Syntax error at line : `}' is not expected.

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

0403-057 Syntax error at line 17 : `(' is not expected.

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

0403-057 Syntax error at line 17 : `(' is not expected.

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

0403-057 Syntax error at line 399 : `"' is not matched

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
class_admin(8)						      System Manager's Manual						    class_admin(8)

NAME
class_admin - Administer class scheduling and the database. SYNOPSIS
/usr/sbin/class_admin [subcommand] DESCRIPTION
The class_admin command is used to configure and control the class scheduler and to maintain its database /etc/class. The class_admin command can be run interactively or non-interactively. Non-interactive mode is useful when you would like to execute a single class_admin subcommand without user interaction. This allows class_admin to be run from within a script, which makes it easy to enable class scheduling at system startup through use of an init(8) script. To run class_admin non-interactively, specify a single class_admin subcommand as an argument when invoking class_admin. Interactive mode is useful when you would like to execute several class_admin subcommands. To run class_admin interactively, invoke class_admin without specifying a subcommand argument. Should the class scheduler database not exist, class_admin will automatically create one when it starts up. If the command is invoked non- interactively, a default database is created (using the following interactive defaults). The interactive process will require you to answer three questions: Shall processes that have not been explicitly assigned to a defined class be assigned to a "default" class? Enter (y/n) [n]: To be class scheduled, a process must be assigned to a class. If you answer <y> to this prompt, a special class called the "default" class will be created, and any process that has not been explicitly assigned to one of the defined classes will be assigned to this class. If you answer <n> to this prompt, then only those processes which have been explicitly assigned to a defined class will be class scheduled. Enforce class scheduling when the CPU is otherwise idle? (y/n) [n]: The administrator has the option of allowing classes to exceed their CPU percentage when the system is otherwise idle if yes is answered. Otherwise, classes are held to their allotted percentage even if the CPU has no other work. How often do you want the system to reset class usage? Enter number of seconds (2): Use a small number (several seconds) if there are interactive jobs subject to class scheduling to give them a quick response time. If only batch jobs are class scheduled, response time is not an issue and larger values may be used. If class scheduling is enabled, changes made take effect immediately. Subcommands Add a group or user to an existing class. If the group or user exists in another class, you will be asked if you want to move it or not. More than one group or user may be specified. Syntax: add <class name> <type> <id ... ...> <type> = 'gid' | 'uid' | 'session' | 'pgrp' | 'pid' Change the CPU percentage allotted to a class. The system will not allow the total of all classes to exceed 100%. Syntax: change <class name> <cpu %> Create a new class. The name must be unique. The newly created class will be empty. Use the add command to populate the class. Syntax: create <class name> <cpu %> Set up the basic class scheduling parameters. You will be prompted for each parameter. Syntax: configure Remove a group or user from an existing class. More than one group or user may be specified. Syntax: delete <class name> <type> <id ... ...> <type> = 'gid' | 'uid' | 'session' | 'pgrp' | 'pid' Destroy an existing class. If the class is not empty, you will be asked if it's OK to destroy it anyway. Syntax: destroy <class name> Turn off class scheduling for the system. Note that the kernel will terminate the class scheduler dae- mon. Syntax: disable Turn on class scheduling for the system. A daemon will be started that periodically examines class CPU usage and adjusts access of a class to the CPU depending on its percentage. Syntax: enable Return to the command shell. If any permanent changes were made to the database, You will be asked to save or dis- card them. (Same as `quit'). Syntax: exit On-line help. If a subcommand is specified, detailed information pertaining to that subcommand is displayed. Other- wise, a list of all subcommands and their arguments is displayed. Syntax: help [<subcommand>] Return to the command shell. If any permanent changes were made to the database, You will be asked to save or discard them. (Same as `exit'). Syntax: quit Change the name of an existing class. Syntax: rename <old name> <new name> Write permanent database changes to the disk and continue. Syntax: save List the configured classes, the CPU percentage allocated to each class, and members assigned to it. If no class name is specified, all classes will be shown. Syntax: show [<class name>] List the current CPU utilization of a class. If no class name is specified, all classes will be shown. Syntax: stats [<class name>] FILES
SEE ALSO
Commands: runclass(1), class_scheduling(4) class_admin(8)
All times are GMT -4. The time now is 06:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy