10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
can anyone help me in this
Input file
Name= XYZ
Company= ALPHA
City= Stockhomn
Equipment=computer
Country=Sweden
Name=MNC
Company=Beta
City=Kaulampur
Equipment=computer
Country=Malaysia
Name=JVC
Company=gamma
City=Kiruna (3 Replies)
Discussion started by: swets
3 Replies
2. Shell Programming and Scripting
Hi,
I have a file which contents entries in this form.
Only in /data4/temp abc.000001
Only in /data4/temp abc.000003
Only in /data4/temp abc.000012
Only in /data4/temp abc.000120
Only in /data4/temp abc.000133
Only in /data4/temp abc.001444
i want to read line by line and format... (2 Replies)
Discussion started by: arijitsaha
2 Replies
3. Shell Programming and Scripting
Hi,
I need to connect to the database and retrieve two variables from the database and store them in a variable,out of these two variables I need to get lastdigit appended to the variable 1 retrieved and variable 2 with out any modification
in short
select var,data from usage;
o/p=... (1 Reply)
Discussion started by: rkrish
1 Replies
4. Shell Programming and Scripting
below is a CPU utilization Log for ABC server.
However for every 15 minutes it generates 3 CPU values(with interval of 2 sec).
Host CPU CPUtotal CPU% time
ABC 101.1 2 50.55 14 : 15
ABC 100.5 2 50.25 14 : 15
ABC 100.2 2 50.1 14 : 15
ABC 100.9 2 50.45 14 : 30
ABC 100.5 2 50.25 14 : 30
ABC... (5 Replies)
Discussion started by: pinga123
5 Replies
5. Shell Programming and Scripting
I have input file in this way
John 1234 BASIC 26000
John 1234 ALLOWC 01550
John 1234 INCER 01700
John 1234 REL 20000
Debi 2345 BASIC 29000
Debi 2345 ALLOWC 01600
Debi 2345 INCR 01900
Debi 2345 REL ... (8 Replies)
Discussion started by: vakharia Mahesh
8 Replies
6. Shell Programming and Scripting
my script is as follows
cnt=`ps -ef |grep pmon|grep -v grep|awk 'END {{print NR}}'`
cnt2=`ps -ef |grep tns|grep -v grep|awk 'END {{print NR}}'`
if
then
if
then
rman target/ catalog recdb/recdb@recdb cmdfile report_need_backup.sql > report_need_backup.txt
... (1 Reply)
Discussion started by: swkambli
1 Replies
7. Shell Programming and Scripting
I am using find and ls to search for "warez" files on my server.
find /home/ -regex ".*\.\(avi\|mp3\|mpeg\|mpg\|iso\)" -print0 | xargs -0 ls -oh
This command produces this:
-rw-r--r-- 1 1000 3.2M Feb 18 2009 /home/user/public_html/lupus.mp3
I want to only get this
3.2M... (4 Replies)
Discussion started by: bonrad
4 Replies
8. Shell Programming and Scripting
Is it possible to convert the attached file to the format mentioned.
Here for a particular job the table name and the corresponding instance name from one test run "X" is compared with the table name and the instance name from the second test run "Y" for output rows,affected rows,applied... (1 Reply)
Discussion started by: ragavhere
1 Replies
9. Shell Programming and Scripting
Hi,
I am new to shell scripting, I ahve written a shell script which would extract me data, but my problem is I want to add a column name to my output. Using grep and sed I am getting my data from the input file.
Sample data
name : eric
name : tom
name : sean
My output using grep and sed... (3 Replies)
Discussion started by: illur81
3 Replies
10. Shell Programming and Scripting
Hi all,
Have the following code(1) producing the results(2 & 3).
Would like to know if there is a way to format the two reports created in a similar fashion.
IE - The first is formatted nicely as a result of the echo "$xmpbdate $xavgs" >> $xmpbrpt
However when I attempt to do the same on... (7 Replies)
Discussion started by: Cameron
7 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)